Skip to content

Commit

Permalink
Quote pattern.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Nov 10, 2014
1 parent af8a2db commit dea4924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion turba/lib/View/List.php
Expand Up @@ -220,7 +220,7 @@ public function display()
$page = $vars->get('page', 'A');
$pattern = array('A-Z', 'a-z', '*');
foreach ($GLOBALS['conf']['pager']['special'] as $chr) {
$pattern[] = $chr;
$pattern[] = preg_quote($chr, '/');
}
if (!preg_match('/^[' . implode('', $pattern) . ']$/', $page)) {
$page = 'A';
Expand Down

0 comments on commit dea4924

Please sign in to comment.