diff options
author | friendica <info@friendica.com> | 2014-02-06 06:39:36 +1100 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-02-06 06:39:36 +1100 |
commit | 4a03ae09ebf1725c282bba5f333f9c76d132e7f0 (patch) | |
tree | 75f29ce706b8a873d304fcbe8476809cd59e8bd6 /include/text.php | |
parent | 0844110f7b154a0fb5102362fe732c2b091222d7 (diff) | |
parent | a606fc0ba39fc5f672fec389b5130b07fe1a1a5d (diff) | |
download | volse-hubzilla-4a03ae09ebf1725c282bba5f333f9c76d132e7f0.tar.gz volse-hubzilla-4a03ae09ebf1725c282bba5f333f9c76d132e7f0.tar.bz2 volse-hubzilla-4a03ae09ebf1725c282bba5f333f9c76d132e7f0.zip |
Merge pull request #302 from git-marijus/master
add a sanitized style tag to bbcode
Diffstat (limited to 'include/text.php')
-rwxr-xr-x | include/text.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php index 266d8952b..2b334068f 100755 --- a/include/text.php +++ b/include/text.php @@ -565,6 +565,10 @@ function get_tags($s) { $s = preg_replace('/\[code\](.*?)\[\/code\]/sm','',$s); + // ignore anything in [style= ] + + $s = preg_replace('/\[style=(.*?)\]/sm','',$s); + // Match full names against @tags including the space between first and last // We will look these up afterward to see if they are full names or not recognisable. |