Revision 1597
Added by Dietmar almost 13 years ago
save.php | ||
---|---|---|
47 | 47 |
$searchfor = '@(<[^>]*=\s*")('.preg_quote($sMediaUrl).')([^">]*".*>)@siU'; |
48 | 48 |
$content = preg_replace($searchfor, '$1{SYSVAR:MEDIA_REL}$3', $content); |
49 | 49 |
// searching in $text will be much easier this way |
50 |
$text = umlauts_to_entities(strip_tags($content), strtoupper(DEFAULT_CHARSET), 0);
|
|
51 |
$content = $admin->add_slashes($content);
|
|
50 |
$content = addslashes($content);
|
|
51 |
$text = umlauts_to_entities($content, strtoupper(DEFAULT_CHARSET), 0);
|
|
52 | 52 |
$sql = 'UPDATE `'.TABLE_PREFIX.'mod_wysiwyg` '; |
53 | 53 |
$sql .= 'SET `content`=\''.$content.'\', `text`=\''.$text.'\' '; |
54 | 54 |
$sql .= 'WHERE `section_id`='.(int)$section_id; |
Also available in: Unified diff
fixed issues with get_magic_quotes_gpc and FCKeditor