Menu

#15 Post containing \ (back slash) in body does not save

open
nobody
None
5
2012-05-13
2012-05-13
Marvin Li
No

mySQL has this character: ` wrapping column names in the query. For some reason, if there's a back slash in my post content, these characters do not get stripped out, and the query generated fails because SQL server does not recognize ` around column names.

As a hack to fix this, I am stripping out ` in the prepare($query) function in sqlsrvr.php:

$query = str_replace('`', '', $query); // strip [`] - breaking queries

Discussion


Log in to post a comment.