cvs: phpweb / source.php
| From: | Hannes Magnusson | Date: | Sat, 10 Feb 2007 21:42:05 +0000 |
| Subject: | cvs: phpweb / source.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-34209@lists.php.net to get a copy of this message | ||
bjori Sat Feb 10 21:42:05 2007 UTC
Modified files:
/phpweb source.php
Log:
Add /conferences into the list of allowed show source folders
http://cvs.php.net/viewvc.cgi/phpweb/source.php?r1=1.26&r2=1.27&diff_format=u
Index: phpweb/source.php
diff -u phpweb/source.php:1.26 phpweb/source.php:1.27
--- phpweb/source.php:1.26 Sat Sep 16 21:57:53 2006
+++ phpweb/source.php Sat Feb 10 21:42:04 2007
@@ -1,5 +1,5 @@
<?php
-// $Id: source.php,v 1.26 2006/09/16 21:57:53 philip Exp $
+// $Id: source.php,v 1.27 2007/02/10 21:42:04 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");
+ $legal_dirs = array("/manual", "/include", "/stats",
"/error", "/license", "/conferences");
if ((preg_match("!^/manual/!", $dir) || in_array($dir, $legal_dirs)) &&
strpos($dir, "..") === FALSE) {
$page_name = $_SERVER['DOCUMENT_ROOT'] . $_GET['url'];