Magic quotes and security: Difference between revisions
From Joomla! Documentation
added information for J!3.0 and notice of MQ |
Remove stuff about magic quotes being good ........... |
||
| Line 1: | Line 1: | ||
'''''This PHP feature has been depreciated as of PHP 5.3.0 (30-06-2009) and has been removed from php as of PHP 5.4.0.''''' | '''''This PHP feature has been depreciated as of PHP 5.3.0 (30-06-2009) and has been removed from php as of PHP 5.4.0.''''' | ||
| Line 7: | Line 5: | ||
: Joomla! advises magic_quotes_gpc to be set to off when using Joomla 2.5.xx. | : Joomla! advises magic_quotes_gpc to be set to off when using Joomla 2.5.xx. | ||
JRequest automatically takes into account the setting of ''magic_quotes_gpc'' and adjusts accordingly. If developers are using JRequest to request input then the actual value of the setting doesn't matter. If developers aren't using it then they will have to take the setting of magic_quotes_gpc into account. | JRequest automatically takes into account the setting of ''magic_quotes_gpc'' and adjusts accordingly. If developers are using JRequest to request input then the actual value of the setting doesn't matter. If developers aren't using it then they will have to take the setting of magic_quotes_gpc into account (for this reason it is still common practice for developers to use JRequest in Joomla 2.5 - even though it is deprecated). | ||
JInput does not take this into account, however due to Joomla 3.x and higher requiring that magic quotes are disabled - this is no longer a problem. | |||
that | |||
disabled | |||
For more on [http://php.net/magic_quotes PHP Manual, Chapter 31. Magic Quotes.] | For more on [http://php.net/magic_quotes PHP Manual, Chapter 31. Magic Quotes.] | ||
<!-- KEEP THIS AT THE END OF THE PAGE --> | <!-- KEEP THIS AT THE END OF THE PAGE --> | ||
[[Category:Security Checklist]] | [[Category:Security Checklist]] | ||
Revision as of 00:09, 2 September 2013
This PHP feature has been depreciated as of PHP 5.3.0 (30-06-2009) and has been removed from php as of PHP 5.4.0.
- Joomla! 3.0 and above requires magic_quotes_gpc to be set to off and will not install if magic_quotes_gpc is on.
- Joomla! advises magic_quotes_gpc to be set to off when using Joomla 2.5.xx.
JRequest automatically takes into account the setting of magic_quotes_gpc and adjusts accordingly. If developers are using JRequest to request input then the actual value of the setting doesn't matter. If developers aren't using it then they will have to take the setting of magic_quotes_gpc into account (for this reason it is still common practice for developers to use JRequest in Joomla 2.5 - even though it is deprecated).
JInput does not take this into account, however due to Joomla 3.x and higher requiring that magic quotes are disabled - this is no longer a problem.
For more on PHP Manual, Chapter 31. Magic Quotes.