diff options
author | RedMatrix <info@friendica.com> | 2014-11-19 08:55:06 +1100 |
---|---|---|
committer | RedMatrix <info@friendica.com> | 2014-11-19 08:55:06 +1100 |
commit | fd10b49fbfa39ad5992303edfbbc0565a0a02af2 (patch) | |
tree | f2350e7bb0a6194acf43b49d9b99c4d9ac34c285 /mod | |
parent | 1d96e165e00ed54df0573bda79c2a274f21aeb16 (diff) | |
parent | c8c061d0cfdd1191b7a6d1acd7eeeaf484f75128 (diff) | |
download | volse-hubzilla-fd10b49fbfa39ad5992303edfbbc0565a0a02af2.tar.gz volse-hubzilla-fd10b49fbfa39ad5992303edfbbc0565a0a02af2.tar.bz2 volse-hubzilla-fd10b49fbfa39ad5992303edfbbc0565a0a02af2.zip |
Merge pull request #699 from pafcu/master
Fix dirsearch with quoted single-word term
Diffstat (limited to 'mod')
-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(); |