cvs: phpweb / source.php
| From: | Hannes Magnusson | Date: | Sat, 10 Feb 2007 21:48:59 +0000 |
| Subject: | cvs: phpweb / source.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-34210@lists.php.net to get a copy of this message | ||
bjori Sat Feb 10 21:48:59 2007 UTC
Modified files:
/phpweb source.php
Log:
Add the release & archive folders into the list of allowed show-source
http://cvs.php.net/viewvc.cgi/phpweb/source.php?r1=1.27&r2=1.28&diff_format=u
Index: phpweb/source.php
diff -u phpweb/source.php:1.27 phpweb/source.php:1.28
--- phpweb/source.php:1.27 Sat Feb 10 21:42:04 2007
+++ phpweb/source.php Sat Feb 10 21:48:59 2007
@@ -1,5 +1,5 @@
<?php
-// $Id: source.php,v 1.27 2007/02/10 21:42:04 bjori Exp $
+// $Id: source.php,v 1.28 2007/02/10 21:48:59 bjori Exp $
$_SERVER['BASE_PAGE'] = 'source.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
$SIDEBAR_DATA = '
@@ -50,7 +50,7 @@
if (!empty($dir) && !preg_match("!^(\\.|/)$!", $dir)) {
// Check if the specified dir is valid
- $legal_dirs = array("/manual", "/include", "/stats",
"/error", "/license", "/conferences");
+ $legal_dirs = array("/manual", "/include", "/stats",
"/error", "/license", "/conferences", "/archive",
"/releases");
if ((preg_match("!^/manual/!", $dir) || in_array($dir, $legal_dirs)) &&
strpos($dir, "..") === FALSE) {
$page_name = $_SERVER['DOCUMENT_ROOT'] . $_GET['url'];