Skip to content

Commit

Permalink
#141: Fixed error related to legacy support for magic quotes.
Browse files Browse the repository at this point in the history
Error was emitted to the log which over time affected load time when using the XML based data source. Fixed!
  • Loading branch information
Jemt committed Oct 18, 2020
1 parent b897689 commit a9247c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions base/SMController.class.php
Expand Up @@ -516,6 +516,11 @@ private function securityValidation()

private function disableMagicQuotes()
{
if (version_compare(phpversion(), "5.4.0") >= 0)
{
return; // PHP 5.4.0 or newer detected - PHP 5.4 dropped support for Magic Quotes
}

// Magic Quotes GPC enabled and Magic Quote Sybase disabled:
// The following characters are escaped with a back slash:
// Single quote, double quote, backslash and NULL.
Expand Down

0 comments on commit a9247c0

Please sign in to comment.