Skip to content

Commit

Permalink
MAGETWO-66885: Special Characters like % in widget inside of WYSIWYG …
Browse files Browse the repository at this point in the history
…gives an error magento#9452
  • Loading branch information
VladimirZaets committed May 17, 2017
1 parent d4f730e commit 19a6485
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/web/mage/adminhtml/wysiwyg/tiny_mce/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,6 @@ define([
var url = this.makeDirectiveUrl('%directive%').replace(/([$^.?*!+:=()\[\]{}|\\])/g, '\\$1'),
reg = new RegExp(url.replace('%directive%', '([a-zA-Z0-9,_-]+)'));

content = decodeURIComponent(content);

return content.gsub(reg, function (match) { //eslint-disable-line no-extra-bind
return Base64.mageDecode(match[1]);
});
Expand Down

0 comments on commit 19a6485

Please sign in to comment.