From 18fc39d2cfd23cb0a57dac236d4ec12d6f3670ff Mon Sep 17 00:00:00 2001 From: Diogo Cordeiro Date: Fri, 17 May 2019 00:32:00 +0100 Subject: [PATCH] Fix noticesearch tag regex --- actions/noticesearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5