Explorar o código

Search allow double quotes

`author:"some name"`
Alexandre Alapetite %!s(int64=9) %!d(string=hai) anos
pai
achega
3011bbc5e1
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      app/Models/Search.php

+ 2 - 0
app/Models/Search.php

@@ -35,6 +35,8 @@ class FreshRSS_Search {
 		}
 		$this->raw_input = $input;
 
+		$input = preg_replace('/:"(.*?)"/', ':"\1"', $input);
+
 		$input = $this->parseNotIntitleSearch($input);
 		$input = $this->parseNotAuthorSearch($input);
 		$input = $this->parseNotInurlSearch($input);