jmontoyaa 8 years ago
parent
commit
1e08395c38
1 changed files with 1 additions and 1 deletions
  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);