|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-07-12 19:39 UTC] floripa@php.net
I tried to edit my PEAR account and got this error. Nothing that an "addslashes()" don't fix. ;) Error: DB Error: syntax error: UPDATE users SET name = 'Ant?nio Carlos Ven?ncio J?nior', email = 'floripa@organiKa.com.br', homepage = '', userinfo = '"Can't buy what I want because its FREE!" Pearl Jam', wishlist = '', showemail = '1', admin = '0' WHERE handle = 'antonio' [nativecode=1064 ** You have an error in your SQL syntax near 't buy what I want because its FREE!" Pearl Jam', wishlist = '', showemail = '1'' at line 1] PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 18:00:01 2025 UTC |
--- account-edit.php Sun Jun 9 19:48:47 2002 +++ fixed/account-edit.php Fri Jul 12 21:02:20 2002 @@ -57,7 +57,7 @@ $HTTP_POST_VARS['name'], $HTTP_POST_VARS['email'], $HTTP_POST_VARS['homepage'], - $HTTP_POST_VARS['userinfo'], + addslashes ($HTTP_POST_VARS['userinfo']), $HTTP_POST_VARS['wishlist'], isset($HTTP_POST_VARS['showemail']) ? 1 : 0, isset($HTTP_POST_VARS['admin']) ? 1 : 0);