fix ategory for pathnames startin gwith a number

This commit is contained in:
Garvin Hicking 2010-03-26 13:55:04 +00:00
parent 6f77a66d1e
commit 0745f14942
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,9 @@
Version 1.6 ()
------------------------------------------------------------------------
* Fix "viewAuthor" URL detection routine if the path name of a
domain begins with a number. (garvinhicking)
* Fix SQLite substring search to use % instead of * for secondary
matches (SvOlli)

View File

@ -465,9 +465,11 @@ if (preg_match(PAT_ARCHIVES, $uri, $matches) || isset($serendipity['GET']['range
$serendipity['GET']['viewAuthor'] = implode(';', $serendipity['POST']['multiAuth']);
$serendipity['uriArguments'][] = PATH_AUTHORS;
$serendipity['uriArguments'][] = serendipity_db_escape_string($serendipity['GET']['viewAuthor']) . '-multi';
} elseif (preg_match('@/([0-9;]+)@', $uri, $multimatch)) {
} elseif (empty($matches[1]) && preg_match('@/([0-9;]+)@', $uri, $multimatch)) {
$is_multiauth = true;
$serendipity['GET']['viewAuthor'] = $multimatch[1];
} else {
$serendipity['GET']['viewAuthor'] = $matches[1];
}
$serendipity['GET']['action'] = 'read';