Fixed tags containing quotes
authorAlexander Ebert <ebert@woltlab.com>
Wed, 26 Jun 2013 12:36:19 +0000 (14:36 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 26 Jun 2013 12:36:19 +0000 (14:36 +0200)
wcfsetup/install/files/js/WCF.Tagging.js

index 6521c8a0b8d7dbc5d07b0b70b6eb2723f28f3cb2..a74adb1b2fcf38f3c4530869bbcbe05f733aed6d 100644 (file)
@@ -81,7 +81,7 @@ WCF.Tagging.TagList = WCF.EditableItemList.extend({
                for (var $i = 0, $length = this._data.length; $i < $length; $i++) {
                        // deleting items leaves crappy indices
                        if (this._data[$i]) {
-                               $('<input type="hidden" name="tags[]" value="' + this._data[$i] + '" />').appendTo(this._form);
+                               $('<input type="hidden" name="tags[]" />').val(this._data[$i]).appendTo(this._form);
                        }
                };
        },