diff options
author | Stefan Parviainen <saparvia@caterva.eu> | 2014-11-18 13:48:22 +0100 |
---|---|---|
committer | Stefan Parviainen <saparvia@caterva.eu> | 2014-11-18 13:48:22 +0100 |
commit | c8c061d0cfdd1191b7a6d1acd7eeeaf484f75128 (patch) | |
tree | 927f52b347edd1b8f1eedb9c13b9e1646b279468 /mod/dirsearch.php | |
parent | ece9819b4d830296474c05bb89161266f6298405 (diff) | |
download | volse-hubzilla-c8c061d0cfdd1191b7a6d1acd7eeeaf484f75128.tar.gz volse-hubzilla-c8c061d0cfdd1191b7a6d1acd7eeeaf484f75128.tar.bz2 volse-hubzilla-c8c061d0cfdd1191b7a6d1acd7eeeaf484f75128.zip |
Fix dirsearch with quoted single-word term
Diffstat (limited to 'mod/dirsearch.php')
-rw-r--r-- | mod/dirsearch.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/dirsearch.php b/mod/dirsearch.php index 52d953707..56e2378a8 100644 --- a/mod/dirsearch.php +++ b/mod/dirsearch.php @@ -305,6 +305,12 @@ function dir_parse_query($s) { $curr['value'] = substr($curr['value'],1); continue; } + elseif($curr['value'][0] == '"' && $curr['value'][strlen($curr['value'])-1] == '"') { + $curr['value'] = substr($curr['value'],1,strlen($curr['value'])-2); + $ret[] = $curr; + $curr = array(); + continue; + } else { $ret[] = $curr; $curr = array(); |