]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
I missed a preg_replace with /e
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 6 Oct 2013 10:37:55 +0000 (12:37 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 6 Oct 2013 10:37:55 +0000 (12:37 +0200)
lib/util.php

index 09d98f7055b04a0a9948e4ab594af546125ccca0..d5a5b23fbd10c29ba998181d43c50ffd8b8b8b32 100644 (file)
@@ -812,7 +812,8 @@ function common_render_text($text)
 
     $r = preg_replace('/[\x{0}-\x{8}\x{b}-\x{c}\x{e}-\x{19}]/', '', $r);
     $r = common_replace_urls_callback($r, 'common_linkify');
-    $r = preg_replace('/(^|\&quot\;|\'|\(|\[|\{|\s+)#([\pL\pN_\-\.]{1,64})/ue', "'\\1#'.common_tag_link('\\2')", $r);
+    $r = preg_replace_callback('/(^|\&quot\;|\'|\(|\[|\{|\s+)#([\pL\pN_\-\.]{1,64})/u',
+                function ($m) { return $m[1].'#'.common_tag_link($m[2]); }, $r);
     // XXX: machine tags
     return $r;
 }
@@ -1259,10 +1260,10 @@ function common_is_sensitive($action)
         'register',
         'passwordsettings',
         'api',
-        'ApiOauthRequestToken',
-        'ApiOauthAccessToken',
-        'ApiOauthAuthorize',
-        'ApiOauthPin',
+        'ApiOAuthRequestToken',
+        'ApiOAuthAccessToken',
+        'ApiOAuthAuthorize',
+        'ApiOAuthPin',
         'showapplication'
     );
     $ssl = null;