Hi
Dne Sun, 13 Apr 2014 15:30:57 +0200 Hugues Peccatte hugues.peccatte@gmail.com napsal(a):
I'm working on bug ticket http://sourceforge.net/p/phpmyadmin/bugs/3733/ I already replaced all & in PHP files by the separator defined in php.ini. I also replaced a part of & in JS files (almost all). But I still have an issue... with Jquery method $.get...
This method have many parameters, and one could be a JSON object of URL parameters. Something like this: var params = { aPath: $expandElem.find('span.aPath').text(), vPath: $expandElem.find('span.vPath').text() }; And this: $.get(url, params, function (data) { ... });
It seems to be hardcoded within jQuery.param(). On the other side, if you give jQuery.get() a string as a params, it will use it as it is. So we can introduce our own function to do the array to string conversion, which will use correct separator, something like (completely not tested):
function PMA_URL_params(params) { var s = []; $.each(params, function() { s[s.length] = encodeURIComponent( key ) + "=" + encodeURIComponent( value ); }); return s.join(SEPARATOR); }
$.get(url, PMA_URL_params(params), function (data) { ... });