cvs: phpweb / source.php
| From: | Rasmus Lerdorf | Date: | Sat, 21 May 2005 15:43:29 +0000 |
| Subject: | cvs: phpweb / source.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-28186@lists.php.net to get a copy of this message | ||
rasmus Sat May 21 11:43:29 2005 EDT
Modified files:
/phpweb source.php
Log:
Minor fix to url parameter handling
http://cvs.php.net/diff.php/phpweb/source.php?r1=1.23&r2=1.24&ty=u
Index: phpweb/source.php
diff -u phpweb/source.php:1.23 phpweb/source.php:1.24
--- phpweb/source.php:1.23 Fri Nov 14 06:59:03 2003
+++ phpweb/source.php Sat May 21 11:43:29 2005
@@ -1,5 +1,5 @@
<?php
-// $Id: source.php,v 1.23 2003/11/14 11:59:03 goba Exp $
+// $Id: source.php,v 1.24 2005/05/21 15:43:29 rasmus Exp $
$_SERVER['BASE_PAGE'] = 'source.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
@@ -39,7 +39,7 @@
site_header("Show Source");
// No file param specified
-if (!isset($_GET['url'])) {
+if (!isset($_GET['url']) || (isset($_GET['url']) &&
!is_string($_GET['url']))) {
echo "<h1>No page URL specified</h1>";
site_footer();
exit;