strip images from directory text entries
This commit is contained in:
parent
3a9139f76e
commit
edd228decb
@ -954,3 +954,8 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true) {
|
||||
|
||||
return $Text;
|
||||
}
|
||||
|
||||
|
||||
function strip_bbimage($s) {
|
||||
$Text = preg_replace("/\[[zi]mg(.*?)\](.*?)\[\/[zi]mg\]/ism", '', $Text);
|
||||
}
|
@ -242,7 +242,7 @@ function directory_content(&$a) {
|
||||
|
||||
$hometown = ((x($profile,'hometown') == 1) ? t('Hometown: ') . $profile['hometown'] : False);
|
||||
|
||||
$about = ((x($profile,'about') == 1) ? t('About: ') . bbcode($profile['about']) : False);
|
||||
$about = ((x($profile,'about') == 1) ? t('About: ') . bbcode(strip_bbimage($profile['about'])) : False);
|
||||
|
||||
$keywords = ((x($profile,'keywords')) ? $profile['keywords'] : '');
|
||||
|
||||
|
1571
util/messages.po
1571
util/messages.po
File diff suppressed because it is too large
Load Diff
@ -1 +1 @@
|
||||
2015-05-28.1046
|
||||
2015-05-30.1048
|
||||
|
Reference in New Issue
Block a user