Diff for horde/test.php between version 1.145 and 1.146

Location: [ Horde CVS ] / horde / test.php
Download diff as:

Log Message

1.146: Escape the URL in test pages.
Submitted by: Michal Marek <mmarek@suse.cz>
Unmodified Unmodified Added Added Modified Modified Removed Removed
Version 1.145 Version 1.146
Line 1 Line 1
<?php
/**
<?php
/**
 * $Horde: horde/test.php,v 1.144 2006/03/30 08:03:59 jan Exp $
 * $Horde: horde/test.php,v 1.145 2006/03/30 08:09:06 jan Exp $
 *
* Copyright 2002-2006 Brent J. Nordquist <bjn@horde.org>
* Copyright 1999-2006 Charles J. Hagenbuch <chuck@horde.org>
 *
* Copyright 2002-2006 Brent J. Nordquist <bjn@horde.org>
* Copyright 1999-2006 Charles J. Hagenbuch <chuck@horde.org>
Line 251 Line 251
        exit;

case 'phpinfo':
        exit;

case 'phpinfo':
        echo '<a href="' . $url . '?mode=test">&lt;&lt; Back to test.php</a>';
        echo '<a href="' . htmlspecialchars($url) . '?mode=test">&lt;&lt; Back to test.php</a>';
        phpinfo();
exit;

case 'filetest':
        phpinfo();
exit;

case 'filetest':
        echo '<a href="' . $url . '?mode=test">&lt;&lt; Back to test.php</a>';
        echo '<a href="' . htmlspecialchars($url) . '?mode=test">&lt;&lt; Back to test.php</a>';
        ?>
<html>
<body bgcolor="white" text="black">
        ?>
<html>
<body bgcolor="white" text="black">