Browse Source

Fix not escape string

jmontoyaa 7 years ago
parent
commit
1203d7e780
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/document/document.php

+ 1 - 1
main/document/document.php

@@ -738,7 +738,7 @@ $tool_visibility = $tool_row['visibility'];*/
 
 $htmlHeadXtra[] = '<script>
 function confirmation (name) {
-    if (confirm(" '.get_lang('AreYouSureToDeleteJS').' "+ name + " ?")) {
+    if (confirm(" '.addslashes(get_lang('AreYouSureToDeleteJS')).' "+ name + " ?")) {
         return true;
     } else {
         return false;