forked from GNUsocial/gnu-social
Fix noticesearch tag regex
This commit is contained in:
parent
c083a8bcc2
commit
18fc39d2cf
@ -57,7 +57,7 @@ class NoticesearchAction extends SearchAction
|
|||||||
$this->q = $this->trimmed('q');
|
$this->q = $this->trimmed('q');
|
||||||
|
|
||||||
// FIXME: very dependent on tag format
|
// 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',
|
common_redirect(common_local_url('tag',
|
||||||
array('tag' => common_canonical_tag(substr($this->q, 1)))),
|
array('tag' => common_canonical_tag(substr($this->q, 1)))),
|
||||||
303);
|
303);
|
||||||
|
Loading…
Reference in New Issue
Block a user