jmontoyaa преди 8 години
родител
ревизия
1e08395c38
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      main/document/download.php

+ 1 - 1
main/document/download.php

@@ -59,10 +59,10 @@ if (substr($refer_script, 0, 15) == '/fillsurvey.php') {
         $document_explorer = api_get_path(WEB_CODE_PATH).'document/document.php?curdirpath='.urlencode($doc_url).'&'.api_get_cidreq_params(Security::remove_XSS($_GET['cidReq'], 0, $gid_req));
         // Redirect
         header('Location: '.$document_explorer);
+        exit;
     }
 }
 
-
 //Fixes swf upload problem in chamilo 1.8.x. When uploading a file with
 //the character "-" the filename was changed from "-" to "_" in the DB for no reason
 $path_info = pathinfo($doc_url);