Skip to content

Commit

Permalink
Documents: Add remove_xss
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Aug 2, 2021
1 parent 6c935a6 commit 93e89d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main/document/document.php
Original file line number Diff line number Diff line change
Expand Up @@ -1962,7 +1962,7 @@ function convertModal (id, format) {
}

// Icons (clickable)
$row[] = DocumentManager::create_document_link(
$row[] = Security::remove_XSS(DocumentManager::create_document_link(
$http_www,
$document_data,
true,
Expand All @@ -1971,7 +1971,7 @@ function convertModal (id, format) {
$size,
$isAllowedToEdit,
$is_certificate_mode
);
));

$path_info = pathinfo($document_data['path']);
if (isset($path_info['extension']) &&
Expand Down Expand Up @@ -2003,7 +2003,7 @@ function convertModal (id, format) {
$titleWithLink .= $invisibility_span_close.$user_link;
$row[] = $titleWithLink;

if ($document_data['filetype'] == 'folder') {
if ($document_data['filetype'] === 'folder') {
$displaySize = '<span id="document_size_'.$document_data['id']
.'" data-path= "'.$document_data['path']
.'" class="document_size"></span>';
Expand Down

0 comments on commit 93e89d8

Please sign in to comment.