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_post.php
1 1
<?php
2 2

  
3
// $Id: save_post.php,v 1.8 2005/06/21 09:13:55 rdjurovich Exp $
3
// $Id$
4 4

  
5 5
/*
6 6

  
......
41 41
if($admin->get_post('title') == '' AND $admin->get_post('url') == '') {
42 42
	$admin->print_error($MESSAGE['GENERIC']['FILL_IN_ALL'], WB_URL.'/modules/news/modify_post.php?page_id='.$page_id.'&section_id='.$section_id.'&post_id='.$id);
43 43
} else {
44
	$title = addslashes($admin->get_post('title'));
45
	$short = addslashes($admin->get_post('short'));
46
	$long = addslashes($admin->get_post('long'));
44
	$title = $admin->add_slashes($admin->get_post('title'));
45
	$short = $admin->add_slashes($admin->get_post('short'));
46
	$long = $admin->add_slashes($admin->get_post('long'));
47 47
	$commenting = $admin->get_post('commenting');
48 48
	$active = $admin->get_post('active');
49 49
	$old_link = $admin->get_post('link');

Also available in: Unified diff