Revision 1697
Added by Luisehahne about 13 years ago
- Bugfixed issues whith storing text for Search function on WYSIWYG module.
 - Html tags where not filtered out.
 
| save.php | ||
|---|---|---|
| 46 | 46 | 
        $content = preg_replace($searchfor, '$1{SYSVAR:MEDIA_REL}$3', $content);
   | 
| 47 | 47 | 
    // searching in $text will be much easier this way  | 
| 48 | 48 | 
    $content = mysql_real_escape_string ($content);  | 
| 49 | 
    	$text = umlauts_to_entities($content, strtoupper(DEFAULT_CHARSET), 0);
   | 
|
| 49 | 
    	$text = umlauts_to_entities(strip_tags($content), strtoupper(DEFAULT_CHARSET), 0);
   | 
|
| 50 | 50 | 
    $sql = 'UPDATE `'.TABLE_PREFIX.'mod_wysiwyg` ';  | 
| 51 | 51 | 
    $sql .= 'SET `content`=\''.$content.'\', `text`=\''.$text.'\' ';  | 
| 52 | 52 | 
    $sql .= 'WHERE `section_id`='.(int)$section_id;  | 
Also available in: Unified diff