Skip to content

Commit 33d95b8

Browse files
committed
Fixed: FS#945 - Table columns should be quoted in Server/lib/classes/db_mysql.inc.php
1 parent 06303be commit 33d95b8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

server/lib/classes/db_mysql.inc.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ function toLower($record) {
189189
return $out;
190190
}
191191

192-
192+
/*
193+
//* These functions are deprecated and will be removed.
193194
function insert($tablename,$form,$debug = 0)
194195
{
195196
if(is_array($form)){
@@ -224,6 +225,7 @@ function update($tablename,$form,$bedingung,$debug = 0)
224225
if($debug == 1) echo "mySQL Error Message: ".$this->errorMessage;
225226
}
226227
}
228+
*/
227229

228230
public function closeConn()
229231
{

server/plugins-available/apache2_plugin.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ function ssl($event_name,$data) {
144144
exec("chmod 400 $key_file2");
145145
@unlink($config_file);
146146
@unlink($rand_file);
147-
$ssl_request = file_get_contents($csr_file);
148-
$ssl_cert = file_get_contents($crt_file);
147+
$ssl_request = $app->db->quote(file_get_contents($csr_file));
148+
$ssl_cert = $app->db->quote(file_get_contents($crt_file));
149149
/* Update the DB of the (local) Server */
150150
$app->db->query("UPDATE web_domain SET ssl_request = '$ssl_request', ssl_cert = '$ssl_cert' WHERE domain = '".$data["new"]["domain"]."'");
151151
$app->db->query("UPDATE web_domain SET ssl_action = '' WHERE domain = '".$data["new"]["domain"]."'");

0 commit comments

Comments
 (0)