serverside:true and "?" in searc

serverside:true and "?" in searc

bmservicesbmservices Posts: 2Questions: 1Answers: 0

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

  • bmservicesbmservices Posts: 2Questions: 1Answers: 0

    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.

  • allanallan Posts: 63,810Questions: 1Answers: 10,516 Site admin

    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

Sign In or Register to comment.