Sfoglia il codice sorgente

Search allow double quotes

`author:"some name"`
Alexandre Alapetite 9 anni fa
parent
commit
3011bbc5e1
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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);