this.user Posted November 26, 2010 Share Posted November 26, 2010 I am passing this value: \\"''"""\""\\\\""""''''\"""\\\""''""""'/'/'/\"'\'\\'\\''\\''''' the the following code is not handling it correctly: $data = mysql_real_escape_string(strip_tags(htmlspecialchars($data))); here is what it looks like when the server gets it: \\"''"""\""\\\\""""''''\"""\\\""''""""'/'/'/\"'\'\\'\\''\\''''' and here is after the code executes: \\\\"\'\'"""\\""\\\\\\\\""""\'\'\'\'\\"""\\\\\\""\'\'""""\'/\'/\'/\\"\'\\\'\\\\\'\\\\\'\'\\\\\'\'\'\'\ Notice if I have \' it bugs out. Link to comment https://forums.phpfreaks.com/topic/219933-escaping-string-is-not-working/ Share on other sites More sharing options...
Pikachu2000 Posted November 26, 2010 Share Posted November 26, 2010 What is the purpose of all this, and what do you mean it "bugs out"? How were you expecting it look? Link to comment https://forums.phpfreaks.com/topic/219933-escaping-string-is-not-working/#findComment-1140124 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.