Revision 40
Added by stefan about 20 years ago
| submit_comment.php | ||
|---|---|---|
| 1 | 1 | <?php | 
| 2 | 2 |  | 
| 3 | // $Id: submit_comment.php,v 1.3 2005/03/28 11:58:04 rdjurovich Exp $
 | |
| 3 | // $Id$ | |
| 4 | 4 |  | 
| 5 | 5 | /* | 
| 6 | 6 |  | 
| ... | ... | |
| 42 | 42 | $page_id = $_GET['page_id']; | 
| 43 | 43 | $section_id = $_GET['section_id']; | 
| 44 | 44 | $post_id = $_GET['post_id']; | 
| 45 | 	$title = addslashes(strip_tags($_POST['title']));
 | |
| 46 | 	$comment = addslashes(strip_tags($_POST['comment']));
 | |
| 45 | 	$title = $admin->add_slashes(strip_tags($_POST['title']));
 | |
| 46 | 	$comment = $admin->add_slashes(strip_tags($_POST['comment']));
 | |
| 47 | 47 | $commented_when = mktime(); | 
| 48 | 48 | 	if(isset($admin) AND $admin->is_authenticated() == true) {
 | 
| 49 | 49 | $commented_by = $admin->get_user_id(); | 
Also available in: Unified diff
Change addslashes,stripslashes to (wb class) method calls add_slashes,strip_slashes