Преглед на файлове

[SCEditor] broken conversion of nonexistant bbcode with attributes (e.g. [blood width=100]) - thanks Akyhne for the report

Signed-off-by: emanuele <[email protected]>
emanuele преди 12 години
родител
ревизия
36646c2b74
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Themes/default/scripts/jquery.sceditor.bbcode.js

+ 1 - 1
Themes/default/scripts/jquery.sceditor.bbcode.js

@@ -528,7 +528,7 @@
 						if(attrs.charAt(0) === "=")
 							attrs = "defaultattr" + attrs;
 
-						if (typeof base.bbcodes[bbcode].attrs == 'function')
+						if (typeof base.bbcodes[bbcode] != 'undefined' && typeof base.bbcodes[bbcode].attrs == 'function')
 						{
 							var declaredAttrs = base.bbcodes[bbcode].attrs();
 							var attrArray = new Array;