From 48028348cb745b07ea3b4a793ac38c0a72c0f260 Mon Sep 17 00:00:00 2001 From: "Eric Johansson (neku)" Date: Sat, 14 May 2016 22:30:28 +0200 Subject: [PATCH] Update core.php --- includes/core.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/core.php b/includes/core.php index 04303eb..2321a2e 100644 --- a/includes/core.php +++ b/includes/core.php @@ -46,7 +46,11 @@ function save_file ($file, $name, $arg, $type){ //Check if html or plain text should be returned if($type==='tool'){ //Return url+filename to the user (plain text) + if(CONFIG_SUBUPLOAD_URL_ENABLED == "true"){ + echo CONFIG_SUBUPLOAD_URL.'/'.urlencode($file_name); + }else{ echo CONFIG_ROOT_URL.'/files/'.urlencode($file_name); + } exit(0); }elseif($type==='normal'){ //Return url+filename to the user (HTML)