Handle Parentheses in Filter
This commit is contained in:
parent
6619c3d52c
commit
21616f4dfb
1 changed files with 3 additions and 1 deletions
|
@ -44,7 +44,9 @@ if (isset($_SESSION['files'])
|
|||
$filter='';
|
||||
if (isset($_GET['f'])) {
|
||||
if ($_GET['f'] != '') {
|
||||
$files = array_values(preg_grep('/.*'.$_GET['f'].'.*/i', $files));
|
||||
$t = array('('=> '\(', ')' => '\)');
|
||||
$f = strtr($_GET['f'], $t);
|
||||
$files = array_values(preg_grep('/.*'.$f.'.*/i', $files));
|
||||
$filter='&f='.$_GET['f'];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue