Skip to content
Permalink
Browse files Browse the repository at this point in the history
fix:tag xss
  • Loading branch information
emlog committed Nov 8, 2022
1 parent 0fdd68c commit 5bf7a79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/article_save.php
Expand Up @@ -18,7 +18,7 @@
$title = isset($_POST['title']) ? addslashes(trim($_POST['title'])) : '';
$postDate = isset($_POST['postdate']) ? strtotime(trim($_POST['postdate'])) : '';
$sort = isset($_POST['sort']) ? (int)$_POST['sort'] : -1;
$tagstring = isset($_POST['tag']) ? addslashes(trim($_POST['tag'])) : '';
$tagstring = isset($_POST['tag']) ? strip_tags(addslashes(trim($_POST['tag']))) : '';
$content = isset($_POST['logcontent']) ? addslashes(trim($_POST['logcontent'])) : '';
$excerpt = isset($_POST['logexcerpt']) ? addslashes(trim($_POST['logexcerpt'])) : '';
$author = isset($_POST['author']) && User::haveEditPermission() ? (int)trim($_POST['author']) : UID;
Expand Down

0 comments on commit 5bf7a79

Please sign in to comment.