logo       

Magic Quotes, Binary Data: msg#00245

php.tcphp

Subject: Magic Quotes, Binary Data

I hate magic quotes.

So, for the most part, I can (as php.net suggests) check to see if
magic quotes is on, and if so, strip the slashes, then escape properly
(mysql_real_escape_string in this case).

But...this is not working for binary data. I get binary data from the
raw http post (php://input), and then try to stick it in a blob field
in a mysql table. I do to it what I mentioned above. When I get the
data out, it looks fine to me, but is choked on by what needs to use
it.

I'm going to suggest to operations that magic quotes is required to be
off...because then everything works fine. But...if I knew of another
way to do this so I wouldn't have to require magic quotes be off...

--

-
Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: talk-unsubscribe-4zcLI8jJc/rYtjvyW6yDsg@xxxxxxxxxxxxxxxx

Please read and follow the list guidelines:
http://www.tcphp.org/mailing_list/guidelines

The tcphp.org mailing list is sponsored by pajunas interactive, inc.




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise