Merge pull request #2762 from opensourcepos/amp-attribute-bug-patch

Correct a bug causing & to break in POST
This commit is contained in:
FrancescoUK
2020-03-13 18:11:24 +00:00
committed by GitHub

View File

@@ -128,7 +128,7 @@ $(document).ready(function()
}
else
{
$.post('<?php echo site_url($controller_name . "/delete_attribute_value/");?>' + value, {definition_id: definition_id});
$.post('<?php echo site_url($controller_name . "/delete_attribute_value/");?>' + escape(value), {definition_id: definition_id});
}
$(this).parents("li").remove();
};
@@ -157,7 +157,7 @@ $(document).ready(function()
}
else
{
$.post('<?php echo site_url("attributes/save_attribute_value/");?>' + value, {definition_id: definition_id});
$.post('<?php echo site_url("attributes/save_attribute_value/");?>' + escape(value), {definition_id: definition_id});
}
}