Pārlūkot izejas kodu

Fix not escape string

jmontoyaa 7 gadi atpakaļ
vecāks
revīzija
1203d7e780
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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;