Revision 40
Added by stefan about 19 years ago
save.php | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 |
// $Id: save.php,v 1.2 2005/04/02 06:25:56 rdjurovich Exp $
|
|
3 |
// $Id$ |
|
4 | 4 |
|
5 | 5 |
/* |
6 | 6 |
|
... | ... | |
34 | 34 |
// Update the mod_menu_links table with the link |
35 | 35 |
if(isset($_POST['link'])) { |
36 | 36 |
// Update link and target |
37 |
$link = addslashes($_POST['link']);
|
|
37 |
$link = $admin->add_slashes($_POST['link']);
|
|
38 | 38 |
$target = $_POST['target']; |
39 | 39 |
$query = "UPDATE ".TABLE_PREFIX."pages SET link = '$link', target = '$target' WHERE page_id = '$page_id'"; |
40 | 40 |
$database->query($query); |
Also available in: Unified diff
Change addslashes,stripslashes to (wb class) method calls add_slashes,strip_slashes