Disables query filter. See #7440

1.9.x
Julio Montoya 10 years ago
parent 3069900099
commit c87b69a861
  1. 4
      main/inc/lib/database.lib.php

@ -473,7 +473,7 @@ class Database
// Fixes security problem when there's no "" or '' between a variable.
// See #7440 for more info
if ($addFix) {
$string = "__@$string@__";
//$string = "__@$string@__";
}
return get_magic_quotes_gpc()
? (self::use_default_connection($connection)
@ -748,7 +748,7 @@ class Database
$connection = null;
}
$query = self::fixQuery($query);
//$query = self::fixQuery($query);
// Check if the table contains a c_ (means a course id)
if (api_get_setting('server_type') === 'test' && strpos($query, 'c_')) {

Loading…
Cancel
Save