From 5b92a4d48d7faab163c089120047a4bd3332180f Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Tue, 05 Jun 2012 03:55:54 -0400 Subject: [PATCH] - Fixed: FS#2225 - webdav access not working when redirect is used to select website base directory - Improved https detection in get_ispconfig_url() function. --- interface/lib/classes/db_mysql.inc.php | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/interface/lib/classes/db_mysql.inc.php b/interface/lib/classes/db_mysql.inc.php index 0319f47..7cee46e 100644 --- a/interface/lib/classes/db_mysql.inc.php +++ b/interface/lib/classes/db_mysql.inc.php @@ -310,6 +310,8 @@ $key_str .= "`".$key ."`,"; $val_str .= "'".$this->quote($val)."',"; } + $key_str = substr($key_str,0,-1); + $val_str = substr($val_str,0,-1); $insert_data_str = '('.$key_str.') VALUES ('.$val_str.')'; } else { $insert_data_str = $insert_data; @@ -335,6 +337,7 @@ foreach($update_data as $key => $val) { $update_data_str .= "`".$key ."` = '".$this->quote($val)."',"; } + $update_data_str = substr($update_data_str,0,-1); } else { $update_data_str = $update_data; } -- Gitblit v1.9.1