From 282f7b582c4e8d691f0e5cf4fc1e2002c9281387 Mon Sep 17 00:00:00 2001 From: Conrad Vermeulen Date: Fri, 1 Jun 2007 13:55:21 +0000 Subject: [PATCH] "KTS-1994" "KT webservice: add_document not working" Fixed. Checkin must also cleanup.... --- ktapi/ktapi.inc.php | 9 +++++++++ 1 file changed, 9 insertions(+), 0 deletions(-) diff --git a/ktapi/ktapi.inc.php b/ktapi/ktapi.inc.php index 384308b..4098bee 100644 --- a/ktapi/ktapi.inc.php +++ b/ktapi/ktapi.inc.php @@ -1024,6 +1024,15 @@ class KTAPI_Document extends KTAPI_FolderItem return new PEAR_Error(KTAPI_ERROR_INTERNAL_ERROR); } DBUtil::commit(); + + $tempfilename=addslashes($tempfilename); + $sql = "DELETE FROM uploaded_files WHERE tempfilename='$tempfilename'"; + $result = DBUtil::runQuery($sql); + if (PEAR::isError($result)) + { + return $result; + } + } /** -- libgit2 0.21.4