Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
33d95b80
Commit
33d95b80
authored
Oct 27, 2009
by
tbrehm
Browse files
Fixed: FS#945 - Table columns should be quoted in Server/lib/classes/db_mysql.inc.php
parent
06303be6
Changes
2
Hide whitespace changes
Inline
Side-by-side
server/lib/classes/db_mysql.inc.php
View file @
33d95b80
...
...
@@ -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
()
{
...
...
server/plugins-available/apache2_plugin.inc.php
View file @
33d95b80
...
...
@@ -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"
]
.
"'"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment