serverside:true and "?" in searc
serverside:true and "?" in searc
Im am using datatables with "serverSide: true".
When I enter something like "abc?" into the quick search/filter field I get a 403 = forbidden server side error, because the question mark is not escaped/masked in the correct way and there are 2 question marks in it.
/kunden?filter=1&draw=7....&search%5Bvalue%5D=acc%3F
The %3F ist the hex code of the question mark.
How can I solve this?
The most easiest thing for me will be: deleting the question mark BEFORE sending the request to the server.
I tried with .keyup on the search field: this.value = this.value.replace('?', '')
but this is done AFTER sending the server side request and does not help at all.
Any suggestions?
Answers
Ah, already solved. Was a server side apache error with mode rewrite. Adding UnsafeAllow3F in .htaccess rewrite rule solved the problem. It might be a bit unsafe, but it works.
Thanks for the update. Good to hear you got it working.
Assuming your server-side processing script is correctly binding parameters, you should be absolutely fine.
Allan