I missed a preg_replace with /e

This commit is contained in:
Mikael Nordfeldth 2013-10-06 12:37:55 +02:00
parent 5f867f98c2
commit 5974493707
1 changed files with 6 additions and 5 deletions

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