solved bug found by Carlos related to 'type=' queries
This commit is contained in:
+1
-1
@@ -2846,7 +2846,7 @@ class Dispatcher {
|
||||
// remarks KEN
|
||||
// "book" selects inbook, book, bookchapter
|
||||
// so we add the regexp modifiers
|
||||
if (strlen($_GET[Q_TYPE])>0) { $_GET[Q_TYPE] = '^'.$_GET[Q_TYPE].'$'; }
|
||||
if (strlen($_GET[Q_TYPE])>0 && !preg_match('/^\^.*\$$/',$_GET[Q_TYPE])) { $_GET[Q_TYPE] = '^'.$_GET[Q_TYPE].'$'; }
|
||||
$this->query[Q_TYPE]= $_GET[Q_TYPE];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user