forked from GNUsocial/gnu-social
I missed a preg_replace with /e
This commit is contained in:
parent
5f867f98c2
commit
5974493707
11
lib/util.php
11
lib/util.php
@ -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 = preg_replace('/[\x{0}-\x{8}\x{b}-\x{c}\x{e}-\x{19}]/', '', $r);
|
||||||
$r = common_replace_urls_callback($r, 'common_linkify');
|
$r = common_replace_urls_callback($r, 'common_linkify');
|
||||||
$r = preg_replace('/(^|\"\;|\'|\(|\[|\{|\s+)#([\pL\pN_\-\.]{1,64})/ue', "'\\1#'.common_tag_link('\\2')", $r);
|
$r = preg_replace_callback('/(^|\"\;|\'|\(|\[|\{|\s+)#([\pL\pN_\-\.]{1,64})/u',
|
||||||
|
function ($m) { return $m[1].'#'.common_tag_link($m[2]); }, $r);
|
||||||
// XXX: machine tags
|
// XXX: machine tags
|
||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
@ -1259,10 +1260,10 @@ function common_is_sensitive($action)
|
|||||||
'register',
|
'register',
|
||||||
'passwordsettings',
|
'passwordsettings',
|
||||||
'api',
|
'api',
|
||||||
'ApiOauthRequestToken',
|
'ApiOAuthRequestToken',
|
||||||
'ApiOauthAccessToken',
|
'ApiOAuthAccessToken',
|
||||||
'ApiOauthAuthorize',
|
'ApiOAuthAuthorize',
|
||||||
'ApiOauthPin',
|
'ApiOAuthPin',
|
||||||
'showapplication'
|
'showapplication'
|
||||||
);
|
);
|
||||||
$ssl = null;
|
$ssl = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user