Hey,
I have set up a RewriteRule for an AJAX call that I'm doing in one of my current projects - one of the calls I do is to post the content of a textarea to my URL, providing the action to execute and and variables required by that action.
eg.
RewriteRule ^page_name/ajax/([^.(!/)]+)/([^.(!/)]+)/?$ index.php?ajax_action=$1&ajax_vars=$2
I am encoding my variables using Javascript's escape() function before passing things to the AJAX post. However, the above regex will not work for any content containing a line break (encoding %0A), and produces a bad URL request. I'm having trouble finding a suitable regex for this, so wondered if anyone here has found something that will help?
Thanks in advance!
Page 1 of 1
mod_rewrite and line breaks in variables
Share this topic:
Page 1 of 1
Help
















