Fog Creek Software
Discussion Board




Extra backslashes in text fields

When we create a new bug or edit a bug in FogBugz, an extra backslash is added in front of any single quotes or backslash in the field that is being saved. Here's an example. Someone creates a new bug entitled:

"I'm having a problem"

When it's saved, it comes out as:

"I\'m having a problem"

Then if someone edits the bug and saves it again, the new title is:

"I\\\\'m having a problem"

Then a second edit makes it look like:

"I\\\\\\\\'m having a problem"

Anyone ever seen this behavior?  We're running the PHP version on Red Hat Enterprise Linux.

Rafe Colburn
Monday, August 16, 2004

Answering my own question ...

This appears to be a PHP misconfiguration.

magic_quotes_gpc should be off.

Rafe Colburn
Monday, August 16, 2004

*  Recent Topics

*  Fog Creek Home