From 6aaee4e5fe8e934db9770858b8fbf9e8581cd1ee Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 11 Nov 2012 22:55:22 -0500 Subject: [PATCH] $this->q => $q --- actions/apisearchjson.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/apisearchjson.php b/actions/apisearchjson.php index dcdf055c6f..612dbdda5c 100644 --- a/actions/apisearchjson.php +++ b/actions/apisearchjson.php @@ -122,7 +122,7 @@ class ApiSearchJSONAction extends ApiPrivateAuthAction // TODO: Support search operators like from: and to:, boolean, etc. - if (preg_match('/^#([\pL\pN_\-\.]{1,64})/ue', $this->q)) { + if (preg_match('/^#([\pL\pN_\-\.]{1,64})$/ue', $q)) { $stream = new TagNoticeStream(substr($q, 1), $this->auth_profile); } else if ($this->isAnURL($q)) { $canon = File_redirection::_canonUrl($q); -- 2.39.2