Skip to content

Commit

Permalink
+ [#31349] Display Error Message when Magic Quotes is Enabled. Thanks
Browse files Browse the repository at this point in the history
Brian Teeman
  • Loading branch information
brianteeman authored and infograf768 committed Jul 21, 2013
1 parent 3cdc3dc commit 7169cd2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
14 changes: 14 additions & 0 deletions administrator/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,20 @@
array('language' => $app->getUserState('application.lang'))
);

// Test for magic quotes
if (get_magic_quotes_gpc())
{
$lang = JFactory::getLanguage();
if ($lang->hasKey('JERROR_MAGIC_QUOTES'))
{
JFactory::getApplication()->enqueueMessage(JText::_('JERROR_MAGIC_QUOTES'), 'Error');
}
else
{
JFactory::getApplication()->enqueueMessage('Your host needs to disable magic_quotes_gpc to run this version of Joomla!', 'Error');
}
}

// Mark afterIntialise in the profiler.
JDEBUG ? $_PROFILER->mark('afterInitialise') : null;

Expand Down
1 change: 1 addition & 0 deletions administrator/language/en-GB/en-GB.ini
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ JERROR_INVALID_CONTROLLER_CLASS="Invalid controller class"
JERROR_LOADFILE_FAILED="Error loading form file"
JERROR_LOADING_MENUS="Error loading Menus: %s"
JERROR_LOGIN_DENIED="You do not have access to the administrator section of this site."
JERROR_MAGIC_QUOTES="Your host needs to disable magic_quotes_gpc to run this version of Joomla!"
JERROR_NO_ITEMS_SELECTED="No item(s) selected."
JERROR_NOLOGIN_BLOCKED="Login denied! Your account has either been blocked or you have not activated it yet."
JERROR_SAVE_FAILED="Could not save data. Error: %s"
Expand Down
3 changes: 3 additions & 0 deletions installation/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ $ -> Language fix or change

; Below is merged into v3.1.2

21-Jul-2013 Jean-Marie Simonet
+ [#31349] Display Error Message when Magic Quotes is Enabled. Thanks Brian Teeman

20-Jul-2013 Jean-Marie Simonet
# [#31496] DEBUG_BACKTRACE_IGNORE_ARGS not supported in PHP 5.3.1-5.3.5. Thanks Beat
# [#31533] User Interface allows tags in Banner Categories but it should not. Thanks Elin waring
Expand Down

0 comments on commit 7169cd2

Please sign in to comment.