Project

General

Profile

« Previous | Next » 

Revision 40

Added by stefan about 19 years ago

Change addslashes,stripslashes to (wb class) method calls add_slashes,strip_slashes

View differences:

save_comment.php
1 1
<?php
2 2

  
3
// $Id: save_comment.php,v 1.1.1.1 2005/01/30 10:32:21 rdjurovich Exp $
3
// $Id$
4 4

  
5 5
/*
6 6

  
......
40 40
if($admin->get_post('title') == '' AND $admin->get_post('comment') == '') {
41 41
	$admin->print_error($MESSAGE['GENERIC']['FILL_IN_ALL'], WB_URL.'/modules/modify_comment.php?page_id='.$page_id.'&section_id='.$section_id.'comment_id='.$id);
42 42
} else {
43
	$title = addslashes($admin->get_post('title'));
44
	$comment = addslashes($admin->get_post('comment'));
43
	$title = $admin->add_slashes($admin->get_post('title'));
44
	$comment = $admin->add_slashes($admin->get_post('comment'));
45 45
	$post_id = $admin->get_post('post_id');
46 46
}
47 47

  

Also available in: Unified diff