Fix noticesearch tag regex

This commit is contained in:
Diogo Cordeiro 2019-05-17 00:32:00 +01:00
parent c083a8bcc2
commit 18fc39d2cf
1 changed files with 1 additions and 1 deletions

View 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);