com web/news: Fix regular expression matching list names: .router.php

From: Date: Tue, 05 Jan 2016 23:47:46 +0000
Subject: com web/news: Fix regular expression matching list names: .router.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-24428@lists.php.net to get a copy of this message
Commit: efbe95acad1af9eff209d128668d803dd80365c8 Author: Ben Ramsey <ben@benramsey.com> Tue, 5 Jan 2016 17:23:20 -0600 Parents: ab0843889b24fb00d76e08be2eda73db1a499ee5 Branches: master Link: http://git.php.net/?p=web/news.git;a=commitdiff;h=efbe95acad1af9eff209d128668d803dd80365c8 Log: Fix regular expression matching list names Changed paths: M .router.php Diff: diff --git a/.router.php b/.router.php index 22f2c15..9fed2a7 100644 --- a/.router.php +++ b/.router.php @@ -1,12 +1,13 @@ <?php -error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); +error_reporting(E_ALL); +ini_set('display_errors', 1); $requestUri = $_SERVER['REQUEST_URI']; $matches = array(); // Paging through group messages -if (preg_match('#^/(php|svn|ug.+)/start/([0-9]+)#', $requestUri, $matches)) { +if (preg_match('#^/(php.+|svn.+|ug.+)/start/([0-9]+)#', $requestUri, $matches)) { $_GET['group'] = $matches[1]; $_GET['i'] = $matches[2]; include 'group.php'; @@ -14,7 +15,7 @@ if (preg_match('#^/(php|svn|ug.+)/start/([0-9]+)#', $requestUri, $matches)) { } // Individual post -if (preg_match('#^/(php|svn|ug.+)/([0-9]+)#', $requestUri, $matches)) { +if (preg_match('#^/(php.+|svn.+|ug.+)/([0-9]+)#', $requestUri, $matches)) { $_GET['group'] = $matches[1]; $_GET['article'] = $matches[2]; include 'article.php'; @@ -22,7 +23,7 @@ if (preg_match('#^/(php|svn|ug.+)/([0-9]+)#', $requestUri, $matches)) { } // Newsgroup main page -if (preg_match('#^/(php|svn|ug[^/]+)(/)?$#', $requestUri, $matches)) { +if (preg_match('#^/(php.+|svn.+|ug.+)(/)?$#', $requestUri, $matches)) { $_GET['group'] = $matches[1]; include 'group.php'; return true;

« previous php.webmaster (#24428) next »