]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix noticesearch tag regex
authorDiogo Cordeiro <diogo@fc.up.pt>
Thu, 16 May 2019 23:32:00 +0000 (00:32 +0100)
committerDiogo Cordeiro <diogo@fc.up.pt>
Wed, 22 May 2019 21:29:33 +0000 (22:29 +0100)
actions/noticesearch.php

index 0d6fb51fb468a935e8eb77385e831f54164abe65..6dcd29bde790452a3a42bedc0a8c44ba7f759462 100644 (file)
@@ -57,7 +57,7 @@ class NoticesearchAction extends SearchAction
         $this->q = $this->trimmed('q');
 
         // FIXME: very dependent on tag format
-        if (preg_match('/^#([\pL\pN_\-\.]{1,64})/ue', $this->q)) {
+        if (preg_match('/^\#([\pL\pN_\-\.]{1,64})/u', $this->q)) {
             common_redirect(common_local_url('tag',
                                              array('tag' => common_canonical_tag(substr($this->q, 1)))),
                             303);