Commit f8b90f62 authored by Dries's avatar Dries
Browse files

- Patch #39357 by m3vrck: fixed typo in mysqli backend.

parent a74ebcc8
......@@ -311,11 +311,11 @@ function db_query_temporary($query) {
* Encoded data.
*/
function db_encode_blob($data) {
return "'". mysql_real_escape_string($data) ."'";
return "'" . mysql_real_escape_string($data) . "'";
}
/**
* Returns text from a Binary Large OBject value.
* Returns text from a Binary Large Object value.
*
* @param $data
* Data to decode.
......
......@@ -314,7 +314,7 @@ function db_query_temporary($query) {
}
/**
* Returns a properly formatted Binary Large OBject value.
* Returns a properly formatted Binary Large Object value.
*
* @param $data
* Data to encode.
......@@ -322,7 +322,8 @@ function db_query_temporary($query) {
* Encoded data.
*/
function db_encode_blob($data) {
return "'". mysql_real_escape_string($data) ."'";
global $active_db;
return "'" . mysqli_real_escape_string($active_db, $data) . "'";
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment