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

(cherry picked from commit 19a6485)
  • Loading branch information
VladimirZaets authored and hostep committed Jul 3, 2017
1 parent 15ec17e commit 3c14085
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/web/mage/adminhtml/wysiwyg/tiny_mce/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,6 @@ define([
// escape special chars in directives url to use it in regular expression
var url = this.makeDirectiveUrl('%directive%').replace(/([$^.?*!+:=()\[\]{}|\\])/g, '\\$1');
var reg = new RegExp(url.replace('%directive%', '([a-zA-Z0-9,_-]+)'));
content = decodeURIComponent(content);

return content.gsub(reg, function(match) {
return Base64.mageDecode(match[1]);
Expand Down

0 comments on commit 3c14085

Please sign in to comment.