diff --git a/server/lib/classes/db_mysql.inc.php b/server/lib/classes/db_mysql.inc.php index 986aa81f7c3c55d15d79997e9d0d807b1eebacdc..1a3b97891752ab24ffa32897a2045c6def5c8391 100644 --- a/server/lib/classes/db_mysql.inc.php +++ b/server/lib/classes/db_mysql.inc.php @@ -189,7 +189,8 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. return $out; } - + /* + //* These functions are deprecated and will be removed. function insert($tablename,$form,$debug = 0) { if(is_array($form)){ @@ -224,6 +225,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. if($debug == 1) echo "mySQL Error Message: ".$this->errorMessage; } } + */ public function closeConn() { diff --git a/server/plugins-available/apache2_plugin.inc.php b/server/plugins-available/apache2_plugin.inc.php index 995cd21a887e334c4936809a5917ea374618d308..3c3f7658e7b2553395429d45e8b00c3c39c1226a 100644 --- a/server/plugins-available/apache2_plugin.inc.php +++ b/server/plugins-available/apache2_plugin.inc.php @@ -144,8 +144,8 @@ class apache2_plugin { exec("chmod 400 $key_file2"); @unlink($config_file); @unlink($rand_file); - $ssl_request = file_get_contents($csr_file); - $ssl_cert = file_get_contents($crt_file); + $ssl_request = $app->db->quote(file_get_contents($csr_file)); + $ssl_cert = $app->db->quote(file_get_contents($crt_file)); /* Update the DB of the (local) Server */ $app->db->query("UPDATE web_domain SET ssl_request = '$ssl_request', ssl_cert = '$ssl_cert' WHERE domain = '".$data["new"]["domain"]."'"); $app->db->query("UPDATE web_domain SET ssl_action = '' WHERE domain = '".$data["new"]["domain"]."'");