Revision 40
Added by stefan about 20 years ago
| 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->stripslashes(htmlspecialchars($content['content'])); |
|
| 32 |
$content = $admin->strip_slashes(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->stripslashes(WYSIWYG_STYLE).' }";'
|
|
| 58 |
. 'editor.config.pageStyle = "body { '.$admin->strip_slashes(WYSIWYG_STYLE).' }";'
|
|
| 59 | 59 |
. 'editor.generate();'; |
| 60 | 60 |
} |
| 61 | 61 |
} |
Also available in: Unified diff
Change addslashes,stripslashes to (wb class) method calls add_slashes,strip_slashes