From 4124d64a58b9c2656085d4cd6e431f5ba2e60076 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Mon, 17 Feb 2014 08:09:30 +0000 Subject: [PATCH] Also need iceRoot in $dest path --- lib/file-control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/file-control.php b/lib/file-control.php index 0bd6ca1..b1854a1 100644 --- a/lib/file-control.php +++ b/lib/file-control.php @@ -83,7 +83,7 @@ if ($_GET['action']=="newFolder") { // If we're due to paste a new file... if ($_GET['action']=="paste") { $source = $file; - $dest = str_replace("//","/",$docRoot.strClean(str_replace("|","/",$_GET['location']))."/".basename($source)); + $dest = str_replace("//","/",$docRoot.$iceRoot.strClean(str_replace("|","/",$_GET['location']))."/".basename($source)); if (!$demoMode && is_writable(dirname($dest))) { if (is_dir($source)) { if (!is_dir($dest)) {