diff --git a/index.php b/index.php index 45cd99b..78701a4 100644 --- a/index.php +++ b/index.php @@ -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']; } }