aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRedMatrix <info@friendica.com>2014-11-19 08:55:06 +1100
committerRedMatrix <info@friendica.com>2014-11-19 08:55:06 +1100
commitfd10b49fbfa39ad5992303edfbbc0565a0a02af2 (patch)
treef2350e7bb0a6194acf43b49d9b99c4d9ac34c285
parent1d96e165e00ed54df0573bda79c2a274f21aeb16 (diff)
parentc8c061d0cfdd1191b7a6d1acd7eeeaf484f75128 (diff)
downloadvolse-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
-rw-r--r--mod/dirsearch.php6
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();