Browse Source

[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 years ago
parent
commit
36646c2b74
1 changed files with 1 additions and 1 deletions
  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;