Code Comments
Programming Forum and web based access to our favorite programming groups.It has come to my attention, when I used setFrom($_POST)
some of the data is already adding slashes to quotes when posted,
DataObject however is already adding slashes is there a way to stop
this ?
Here is something in a function i had used for generating sql from post
arrays, it was dodgy but worked :|
if (!get_magic_quotes_gpc()) {
$vals .= "'".addslashes($value)."'".$delimiter;
} else {
$vals .= "'".$value."'".$delimiter;
}
should this be patched to dataobject or MDB2 or DB quote method ?
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.