Skip to content
Permalink
Browse files Browse the repository at this point in the history
Documents: Add remove_XSS
  • Loading branch information
jmontoyaa committed May 14, 2021
1 parent d3ef463 commit cf84be1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/document/document.php
Expand Up @@ -1995,7 +1995,7 @@ function convertModal (id, format) {
);

// Document title with link and comment
$titleWithLink = $link.$session_img.'<br />'.$invisibility_span_open;
$titleWithLink = Security::remove_XSS($link.$session_img.'<br />'.$invisibility_span_open);
$commentText = nl2br(htmlspecialchars($document_data['comment'], ENT_QUOTES, $charset));
if (!empty($commentText)) {
$titleWithLink .= '<em>'.$commentText.'</em>';
Expand Down

0 comments on commit cf84be1

Please sign in to comment.