Revision 40
Added by stefan about 20 years ago
| save.php | ||
|---|---|---|
| 1 | 1 |
<?php |
| 2 | 2 |
|
| 3 |
// $Id: save.php,v 1.2 2005/04/02 06:25:57 rdjurovich Exp $
|
|
| 3 |
// $Id$ |
|
| 4 | 4 |
|
| 5 | 5 |
/* |
| 6 | 6 |
|
| ... | ... | |
| 31 | 31 |
|
| 32 | 32 |
// Update the mod_wysiwygs table with the contents |
| 33 | 33 |
if(isset($_POST['content'])) {
|
| 34 |
$content = addslashes($_POST['content']);
|
|
| 34 |
$content = $admin->add_slashes($_POST['content']);
|
|
| 35 | 35 |
$text = strip_tags($content); |
| 36 | 36 |
$database = new database(); |
| 37 | 37 |
$query = "UPDATE ".TABLE_PREFIX."mod_wysiwyg SET content = '$content', text = '$text' WHERE section_id = '$section_id'"; |
Also available in: Unified diff
Change addslashes,stripslashes to (wb class) method calls add_slashes,strip_slashes