瀏覽代碼

[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;