mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
bug:2386
Bug in tag urls if tag start with a number git-svn-id: http://piwigo.org/svn/trunk@11831 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -507,6 +507,8 @@ function parse_section_url( $tokens, &$next_token)
|
||||
}
|
||||
elseif ( 'tags' == @$tokens[$next_token] )
|
||||
{
|
||||
global $conf;
|
||||
|
||||
$page['section'] = 'tags';
|
||||
$page['tags'] = array();
|
||||
|
||||
@@ -523,7 +525,7 @@ function parse_section_url( $tokens, &$next_token)
|
||||
or strpos($tokens[$i], 'start-')===0 )
|
||||
break;
|
||||
|
||||
if ( preg_match('/^(\d+)(?:-(.*))?/', $tokens[$i], $matches) )
|
||||
if ( $conf['tag_url_style'] != 'tag' and preg_match('/^(\d+)(?:-(.*)|)$/', $tokens[$i], $matches) )
|
||||
{
|
||||
array_push($requested_tag_ids, $matches[1]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user