cvs: phpweb / source.php

From: Date: Tue, 20 Nov 2007 22:13:00 +0000
Subject: cvs: phpweb / source.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-528@lists.php.net to get a copy of this message
bjori Tue Nov 20 22:13:00 2007 UTC Modified files: /phpweb source.php Log: Add "view source" ability to the reST/ folder http://cvs.php.net/viewvc.cgi/phpweb/source.php?r1=1.29&r2=1.30&diff_format=u Index: phpweb/source.php diff -u phpweb/source.php:1.29 phpweb/source.php:1.30 --- phpweb/source.php:1.29 Thu Mar 1 17:12:17 2007 +++ phpweb/source.php Tue Nov 20 22:13:00 2007 @@ -1,5 +1,5 @@ <?php -// $Id: source.php,v 1.29 2007/03/01 17:12:17 bjori Exp $ +// $Id: source.php,v 1.30 2007/11/20 22:13:00 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", "/archive", "/releases", "/security"); + $legal_dirs = array("/manual", "/include", "/stats", "/error", "/license", "/conferences", "/archive", "/releases", "/security", "/reST"); if ((preg_match("!^/manual/!", $dir) || in_array($dir, $legal_dirs)) && strpos($dir, "..") === FALSE) { $page_name = $_SERVER['DOCUMENT_ROOT'] . $_GET['url'];

« previous php.webmaster (#528) next »