Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…protect tag name from XSS
  • Loading branch information
plegall committed Mar 1, 2024
1 parent 7fc04d7 commit 5069610
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions admin/include/functions.php
Expand Up @@ -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
Expand Down

0 comments on commit 5069610

Please sign in to comment.