[PROBLEM] WITH PDO AND CKEDITOR

Owno4D

New Member
Feb 27, 2015
2
0
I use PDO::quote() to avoid sql injections, but with ckeditor I have a problem that adds "\r\n" to my string, how can I solve it? I use ckeditor 4.13.0 and PHP 5.6
 

BIOS

ಠ‿ಠ
Apr 25, 2012
906
247
I use PDO::quote() to avoid sql injections, but with ckeditor I have a problem that adds "\r\n" to my string, how can I solve it? I use ckeditor 4.13.0 and PHP 5.6
You should really be using prepared statements as opposed to quote() where possible to prevent SQL Injections.

But the function you're looking for is , that'll remove the "\r\n" from your string.
 

Owno4D

New Member
Feb 27, 2015
2
0
You should really be using prepared statements as opposed to quote() where possible to prevent SQL Injections.

But the function you're looking for is , that'll remove the "\r\n" from your string.

Thank you very much for your reply, I use both the prepared statements and the quote function for more protection. I report it as a problem solved.
 

Users who are viewing this thread

Top