Permalink
Browse files

Merge pull request #1264 from joaoinacio/ezp26427_ezoe_popuputils_url…

…encode

Fix EZP-26427: ezoe popup search string not urlencoded
  • Loading branch information...
2 parents 9fdebb8 + 5461a7a commit 2dfb5cba9575293584c0cbfeff6c1070afc2c4a1 @joaoinacio joaoinacio committed on GitHub Oct 17, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 extension/ezoe/design/standard/javascript/ezoe/popup_utils.js
@@ -745,7 +745,7 @@ var eZOEPopupUtils = {
var postData = '', val;
jQuery.each( jQuery('#' + id + ' input, #' + id + ' select').serializeArray(), function(i, o){
if ( o.value )
- postData += ( postData ? '&' : '') + o.name + '=' + o.value;
+ postData += ( postData ? '&' : '') + o.name + '=' + encodeURIComponent(o.value);
});
return postData;
},

0 comments on commit 2dfb5cb

Please sign in to comment.