Forum Moderators: coopster

Message Too Old, No Replies

Weird extra markins on posted form values

         

Gero_Master

6:53 am on Jan 30, 2006 (gmt 0)

10+ Year Member



Hello!

I made this shoutbox thing. But it appeared that there is a bug I can't find out.

When member with non-protected name posts a message, it appears on my "flags" like:

I'm Tomi --> I\'m Tomi

But it's normal again after the page has saved it to mysql.

But for members with protected names (registered account) post, the flags show the error again, but this time, the error appears in the shoutbox.

I'm tomi --> I\'m Tomi

And after multiple password retriess, the amount of those lines grow expotentionally:

I\' tomi
I\\' Tomi
I\\\\' Tomi
I\\\\\\\\\\\\' Tomi
I\\\\\\\\\\\\\\\\\\\\' Tomi
I\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' Tomi

What is my problem and how should I deal with it? It's really annoying bug.

Salsa

7:08 am on Jan 30, 2006 (gmt 0)

10+ Year Member



Use stripslashes() and/or turn off magic quotes.

Gero_Master

10:53 am on Jan 30, 2006 (gmt 0)

10+ Year Member



Thank you very much. I almost gave up with the whole thing because of that bug :O