From 39d2549b23dd3fe22e45570253ce03f35e7406fc Mon Sep 17 00:00:00 2001 From: circuitbomb Date: Mon, 15 Apr 2013 15:02:52 -0400 Subject: [PATCH 1/3] Add empty check on data for jSend --- components/collaborative/init.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/collaborative/init.js b/components/collaborative/init.js index d1abdc5..661e9ae 100644 --- a/components/collaborative/init.js +++ b/components/collaborative/init.js @@ -190,7 +190,9 @@ function (data) { // console.log('complete unregistering'); // console.log(data); - codiad.jsend.parse(data); + if(data !== '') { + codiad.jsend.parse(data); + } }); this.currentFilename = null; From d6c5ca717e269a3d5ad7c6857d4344cec8a892d2 Mon Sep 17 00:00:00 2001 From: circuitbomb Date: Mon, 15 Apr 2013 15:03:57 -0400 Subject: [PATCH 2/3] Replace common.php with index.php --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.php b/common.php index 034529f..76c1e3e 100755 --- a/common.php +++ b/common.php @@ -19,7 +19,7 @@ } if(!defined('BASE_PATH')) { - define('BASE_PATH', rtrim(str_replace("common.php", "", $_SERVER['SCRIPT_FILENAME']),"/")); + define('BASE_PATH', rtrim(str_replace("index.php", "", $_SERVER['SCRIPT_FILENAME']),"/")); } if(!defined('COMPONENTS')) { From 8aa00e887195a1c918634d4876cbb5a4d3113bc9 Mon Sep 17 00:00:00 2001 From: circuitbomb Date: Mon, 15 Apr 2013 15:05:34 -0400 Subject: [PATCH 3/3] Add slash to downloadfile in else --- components/filemanager/download.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/filemanager/download.php b/components/filemanager/download.php index 19f15d9..2272c2e 100755 --- a/components/filemanager/download.php +++ b/components/filemanager/download.php @@ -63,7 +63,7 @@ }else{ $filename = explode("/",$_GET['path']); $filename = array_pop($filename); - $download_file = WORKSPACE . $_GET['path']; + $download_file = WORKSPACE . '/' . $_GET['path']; } header('Content-Description: File Transfer');