fix ategory for pathnames startin gwith a number
This commit is contained in:
parent
2ecf7fbba2
commit
36f955285e
@ -3,6 +3,9 @@
|
|||||||
Version 1.6 ()
|
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
|
* Fix SQLite substring search to use % instead of * for secondary
|
||||||
matches (SvOlli)
|
matches (SvOlli)
|
||||||
|
|
||||||
|
@ -465,9 +465,11 @@ if (preg_match(PAT_ARCHIVES, $uri, $matches) || isset($serendipity['GET']['range
|
|||||||
$serendipity['GET']['viewAuthor'] = implode(';', $serendipity['POST']['multiAuth']);
|
$serendipity['GET']['viewAuthor'] = implode(';', $serendipity['POST']['multiAuth']);
|
||||||
$serendipity['uriArguments'][] = PATH_AUTHORS;
|
$serendipity['uriArguments'][] = PATH_AUTHORS;
|
||||||
$serendipity['uriArguments'][] = serendipity_db_escape_string($serendipity['GET']['viewAuthor']) . '-multi';
|
$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;
|
$is_multiauth = true;
|
||||||
$serendipity['GET']['viewAuthor'] = $multimatch[1];
|
$serendipity['GET']['viewAuthor'] = $multimatch[1];
|
||||||
|
} else {
|
||||||
|
$serendipity['GET']['viewAuthor'] = $matches[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
$serendipity['GET']['action'] = 'read';
|
$serendipity['GET']['action'] = 'read';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user