jquery datatable search value will auto add escape in php?
jquery datatable search value will auto add escape in php?
matt.crawfoord
Posts: 31Questions: 13Answers: 0
hi all,
I am using jquery datatable , but when i input like 'usr0/0/2/3' it's will change to 'usr0\/0\/2\/3' i have try to using
str_replace( '\', '', $str);
to remove escape ,but still failed please someone help me how to remove the escape ?
This discussion has been closed.
Answers
They look the same to me. I think I must be missing something :-)
What are you using to state the data to the server? I assume you have magic quotes disabled in your PHP?
Allan
sorry , the input
'usr0/0/2/3' will change to 'usr0\/0\/2\/3' in datatable debug
but Current versions of PHP shouldn't to anything to GET or POST.
Do you mean this debugger? That's probably a quirk of the debugger to be honest. If you have a link to the page I'd be happy to take a look.
Allan
hi allan,
my code https://jsfiddle.net/andrewarnier/udgp3x9o/24/
when i input like ad0/6/1/2 in search box , then through the debugger I found the input will change to ad0\/6\/1\/2 ,
please help me hot to fix it to ad0\/6/1/2
I don't fully understand I'm afraid - it sounds like an encoding error in the debugger (although I've just tried an example and it appears to work as expected - show the "full table state" and then search for "oPreviousSearch").
I'm not clear why an issue with the debugger is something that is a problem for you, or are you just trying to be kind and help me isolate that?
Allan