Skip to content

Commit 93e89d8

Browse files
committed
Documents: Add remove_xss
1 parent 6c935a6 commit 93e89d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main/document/document.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1962,7 +1962,7 @@ function convertModal (id, format) {
19621962
}
19631963

19641964
// Icons (clickable)
1965-
$row[] = DocumentManager::create_document_link(
1965+
$row[] = Security::remove_XSS(DocumentManager::create_document_link(
19661966
$http_www,
19671967
$document_data,
19681968
true,
@@ -1971,7 +1971,7 @@ function convertModal (id, format) {
19711971
$size,
19721972
$isAllowedToEdit,
19731973
$is_certificate_mode
1974-
);
1974+
));
19751975

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

2006-
if ($document_data['filetype'] == 'folder') {
2006+
if ($document_data['filetype'] === 'folder') {
20072007
$displaySize = '<span id="document_size_'.$document_data['id']
20082008
.'" data-path= "'.$document_data['path']
20092009
.'" class="document_size"></span>';

0 commit comments

Comments
 (0)