Skip to content

Commit

Permalink
escape selected value in bootstrap selects before sending them to server
Browse files Browse the repository at this point in the history
No need to escape drop down values and encodeURI before sending up to server.

https://bugzilla.redhat.com/show_bug.cgi?id=1264218
  • Loading branch information
h-kataria committed Sep 30, 2015
1 parent 94d4a9c commit 6e8fac0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/assets/javascripts/miq_application.js
Expand Up @@ -1252,7 +1252,8 @@ function miqSelectPickerEvent(element, url, options){
$('#' + element).on('change', function(){
var selected = $('#' + element).val();
options = typeof options !== 'undefined' ? options : {}
miqJqueryRequest(url + '?' + element + '=' + selected, options);
options['no_encoding'] = true;
miqJqueryRequest(url + '?' + element + '=' + escape(selected), options);
return true;
});
}
Expand Down

0 comments on commit 6e8fac0

Please sign in to comment.