Skip to content

Commit

Permalink
Update uddeimlib41.php
Browse files Browse the repository at this point in the history
fixed "Call to undefined function get_magic_quotes_gpc()"
  • Loading branch information
slabbi authored Feb 14, 2023
1 parent 971e9f0 commit 7afb03c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion com_uddeim_j40/site/uddeimlib41.php
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,8 @@ function uddeIM_utf8_strlen($utf8, $str) {

function uddeIMquoteSmart($source) {
$database = uddeIMgetDatabase();
if (get_magic_quotes_gpc()) {
// if (get_magic_quotes_gpc()) {
if ( (function_exists("get_magic_quotes_gpc") && get_magic_quotes_gpc()) ) {
$source = stripslashes($source);
}
$source = $database->escape( $source );
Expand Down

0 comments on commit 7afb03c

Please sign in to comment.