PDA

View Full Version : SQL Error when using ' in blog title


filipp
09-26-2005, 05:01 AM
pixelpost produces an error when using an ellipse in the site title (like "flip's blog")
The fix is simply:
In index.php, line 573:
$_POST['new_site_title']) -> addslashes ($_POST['new_site_title'])

Shouldn't this be done to practically every query? If so, wouldn't it make sense to rewrite sql_query ()?

Or am I missing something?:confused:

Nemesis
09-28-2005, 04:15 AM
Hmmm not sure why you were getting that.
I have no problems with using " ' " in the title.

GeoS
09-28-2005, 07:43 AM
That can be a reason of well working:
http://pl2.php.net/magic_quotes/