Project

General

Profile

« Previous | Next » 

Revision 42

Added by stefan about 19 years ago

Changed most occurrences of strip_slashes to new dummy method strip_slashes_dummy.

View differences:

modify.php
29 29
$query = "SELECT content FROM ".TABLE_PREFIX."mod_wysiwyg WHERE section_id = '$section_id'";
30 30
$get_content = $database->query($query);
31 31
$content = $get_content->fetchRow();
32
$content = $admin->strip_slashes(htmlspecialchars($content['content']));
32
$content = $admin->strip_slashes_dummy(htmlspecialchars($content['content']));
33 33

  
34 34
// Load HTMLArea
35 35
if(!isset($loaded_htmlarea)) {
......
55 55
		echo 'var editor = new HTMLArea("content'.$wysiwyg_section["section_id"].'");'
56 56
			. 'editor.registerPlugin(ContextMenu);'
57 57
			. 'editor.registerPlugin(TableOperations);'
58
			. 'editor.config.pageStyle = "body { '.$admin->strip_slashes(WYSIWYG_STYLE).' }";'
58
			. 'editor.config.pageStyle = "body { '.$admin->strip_slashes_dummy(WYSIWYG_STYLE).' }";'
59 59
			. 'editor.generate();';
60 60
		}
61 61
	}

Also available in: Unified diff