From: Diogo Cordeiro Date: Thu, 16 May 2019 23:32:00 +0000 (+0100) Subject: Fix noticesearch tag regex X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=18fc39d2cf;p=quix0rs-gnu-social.git Fix noticesearch tag regex --- diff --git a/actions/noticesearch.php b/actions/noticesearch.php index 0d6fb51fb4..6dcd29bde7 100644 --- a/actions/noticesearch.php +++ b/actions/noticesearch.php @@ -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);