1
0
Fork 0

unsafe chars in admin, add img to diaspora markdown processor

This commit is contained in:
Friendika 2011-08-30 18:46:34 -07:00
commit f8da48a880
3 changed files with 3 additions and 2 deletions

View file

@ -17,6 +17,7 @@ function diaspora2bb($s) {
$s = preg_replace("/\_(.+?)\_/", '[i]$1[/i]', $s);
$s = str_replace(array('-^doublestar^-','-^doublescore-^','-^star^-','-^score^-'), array('**','__','*','_'), $s);
$s = preg_replace('/\[(.+?)\]\((.+?)\)/','[url=$2]$1[/url]',$s);
$s = preg_replace('/\!\[(.+?)\]\((.+?)\)/','[img]$2[/img]',$s);
$s = escape_tags($s);
return $s;