fixes GHSA-7379-w44f-mfw4 and fixes GHSA-8g2g-6f2c-6h7j protect tag name from XSS

This commit is contained in:
plegall
2024-03-01 11:24:50 +01:00
parent cfd32548bb
commit 917cab5a44

View File

@@ -2365,6 +2365,9 @@ function get_extents($start='')
*/
function create_tag($tag_name)
{
// clean the tag, no html/js allowed in tag name
$tag_name = strip_tags($tag_name);
// does the tag already exists?
$query = '
SELECT id