r92421 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92420‎ | r92421 | r92422 >
Date:00:31, 18 July 2011
Author:yaron
Status:deferred
Tags:
Comment:
Added escaping of quotes for combobox values
Modified paths:
  • /trunk/extensions/SemanticForms/libs/SemanticForms.js (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/libs/SemanticForms.js
@@ -833,6 +833,7 @@
834834 var name= select[0].name;
835835 var id = select[0].id;
836836 var curval = select[0].options[0].value;
 837+ curval = curval.replace('"', '"' );
837838 var input = jQuery("<input id=\"" + id + "\" type=\"text\" name=\" " + name + " \" value=\"" + curval + "\">")
838839 .insertAfter(select)
839840 .attr("tabIndex", select.attr("tabIndex"))