strip images from directory text entries

This commit is contained in:
redmatrix 2015-05-30 15:03:44 -07:00
parent 3a9139f76e
commit edd228decb
4 changed files with 823 additions and 757 deletions

View File

@ -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);
}

View File

@ -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'] : '');

File diff suppressed because it is too large Load Diff

View File

@ -1 +1 @@
2015-05-28.1046
2015-05-30.1048