cvs: phpweb / error.php
| From: | Hannes Magnusson | Date: | Thu, 01 Mar 2007 17:11:05 +0000 |
| Subject: | cvs: phpweb / error.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-34510@lists.php.net to get a copy of this message | ||
bjori Thu Mar 1 17:11:05 2007 UTC
Modified files:
/phpweb error.php
Log:
Advisory redirects
http://cvs.php.net/viewvc.cgi/phpweb/error.php?r1=1.60&r2=1.61&diff_format=u
Index: phpweb/error.php
diff -u phpweb/error.php:1.60 phpweb/error.php:1.61
--- phpweb/error.php:1.60 Mon Feb 12 00:06:07 2007
+++ phpweb/error.php Thu Mar 1 17:11:04 2007
@@ -1,6 +1,6 @@
<?php
-// $Id: error.php,v 1.60 2007/02/12 00:06:07 bjori Exp $
+// $Id: error.php,v 1.61 2007/03/01 17:11:04 bjori Exp $
/*
@@ -37,6 +37,15 @@
}
// ============================================================================
+// FC: handle advisories
+if (preg_match("!^security/advisories/PHPSA-(\\d+)\\.php$!", $URI, $array)) {
+ status_header(200);
+ $_GET["id"] = $array[1];
+ include_once $_SERVER['DOCUMENT_ROOT'] . '/security/index.php';
+ exit;
+}
+
+// ============================================================================
// Omit query string from URL and urldecode special chars
$URI = urldecode(preg_replace("!(\\?.*$)!", "", $URI));