Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Joomla 3 magic_quotes_gpc = Off Requirement
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nick Savov  
View profile  
 More options Aug 14 2012, 11:29 pm
From: Nick Savov <n...@iowawebcompany.com>
Date: Tue, 14 Aug 2012 20:29:16 -0700 (PDT)
Local: Tues, Aug 14 2012 11:29 pm
Subject: Joomla 3 magic_quotes_gpc = Off Requirement

Hi everyone,

I originally posted this on the JCMS mailing list
(https://groups.google.com/d/msg/joomla-dev-cms/q5BQVVAOSJo/Xc4_2frg2FYJ)
and it was suggested that I post it in the platform list instead, so here
it goes:

Joomla 3 is looking great!  Great job to everyone!

One concern that I have is the requirement of magic_quotes_gpc to Off
during installation.  If you have a flexible host and they allow you to
modify or override the php.ini, everything's OK (after a bit of work to
make the code changes).  However, if you don't have a flexible host you
might be stuck or have to migrate hosts.  Additionally, what happens when
some of the 2.5 users start upgrading to 3.0?  We currently do not have a
pre-upgrade check for magic_quotes_gpc = Off, so that would result in
strange bugs.

In Joomla 2.5, magic_quotes_gpc to Off was not a requirement, but rather
just a recommendation. In Joomla 3, it is a requirement.  I recommend that
we make magic_quotes_gpc = Off a recommendation (rather than a requirement)
for Joomla 3.

The con to making it a recommendation (rather than a requirement):
1) Those sites with magic_quotes_gpc = On, wouldn't run as fast as they
would if it was Off.

The Pros to making it a recommendation (rather than a requirement):
1) Those sites with magic_quotes_gpc = On, would be able to use Joomla 3.

To me, the pro definitely outweighs the con.  Also, if they wanted to, they
could go through the work of turning off magic_quotes_gpc (it just wouldn't
be a requirement).

In short, it's a win/win situation for everyone if magic_quotes_gpc to Off
was not a requirement, but rather just a recommendation.

If we decided to go that route, basically it would involve unescpaing all
input data before we start to handle the request.

Kind regards,
Nick


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Amy Stephen  
View profile  
 More options Aug 21 2012, 3:39 pm
From: Amy Stephen <amystep...@gmail.com>
Date: Tue, 21 Aug 2012 12:39:30 -0700 (PDT)
Local: Tues, Aug 21 2012 3:39 pm
Subject: Re: Joomla 3 magic_quotes_gpc = Off Requirement

Since i recommended Nick ask this question on the Platform list, I wanted
to throw in a couple of followup questions of my own - for clarity.

1. Is it true that the platform version that will be part of 3.0 will
required magic quotes gpc to be off?

2. If not, (meaning if the platform continues to support this directive on)
and since it sounds like strong consideration has been given to moving the
Installer into the CMS, is it within the CMS Team's decision making
structure to determine whether or not the requirement can be removed?

3. If so (meaning that the platform does not accommodate magic quotes),
might it make sense that the code to unescape magic quotes gpc be added
until PHP 5.4 is the base requirement? (It appears that the directive is
deprecated in PHP 5.3 and removed in 5.4.)

3. B. If the platform simply no longer accommodates magic quotes gpc, can
this be handled with a system plugin? Or, is the best way to deal with this
to link to a wiki document that explains how to deal with a hoster that has
this enabled.

Thanks!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rouven Weßling  
View profile   Translate to Translated (View Original)
 More options Aug 21 2012, 3:57 pm
From: Rouven Weßling <m...@rouvenwessling.de>
Date: Tue, 21 Aug 2012 21:57:38 +0200
Local: Tues, Aug 21 2012 3:57 pm
Subject: Re: [jplatform] Joomla 3 magic_quotes_gpc = Off Requirement

On 21.08.2012, at 21:39, Amy Stephen <amystep...@gmail.com> wrote:

> Since i recommended Nick ask this question on the Platform list, I wanted to throw in a couple of followup questions of my own - for clarity.

> 1. Is it true that the platform version that will be part of 3.0 will required magic quotes gpc to be off?

Yes. On all PHP options that change the runtime behavior of PHP we basically opted for the one that works like PHP 5.4.

> 2. If not, (meaning if the platform continues to support this directive on) and since it sounds like strong consideration has been given to moving the Installer into the CMS, is it within the CMS Team's decision making structure to determine whether or not the requirement can be removed?

Not sure I understand the question. What does this have to do with the installer?

> 3. If so (meaning that the platform does not accommodate magic quotes), might it make sense that the code to unescape magic quotes gpc be added until PHP 5.4 is the base requirement? (It appears that the directive is deprecated in PHP 5.3 and removed in 5.4.)

We could but I don't think that's a good idea. The code involved could not only cause a decent performance I wouldn't wanna make any guarantees about its stability either.

> 3. B. If the platform simply no longer accommodates magic quotes gpc, can this be handled with a system plugin? Or, is the best way to deal with this to link to a wiki document that explains how to deal with a hoster that has this enabled.

It can be handled in the application. A system plug-in may not be a good choice, depends on how much input has been processed at that point and whether it includes any escaped parameters.

Best regards
Rouven

PS: Those developers using JInput should be aware that it never was aware of magic_quotes, you'd have to handle that yourself.

  smime.p7s
6K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Amy Stephen  
View profile   Translate to Translated (View Original)
 More options Aug 21 2012, 5:32 pm
From: Amy Stephen <amystep...@gmail.com>
Date: Tue, 21 Aug 2012 16:32:05 -0500
Local: Tues, Aug 21 2012 5:32 pm
Subject: Re: [jplatform] Joomla 3 magic_quotes_gpc = Off Requirement

Rouven -

Thank you for clarifying this. The installer question was only relevant if
this wasn't a real requirement, so, just set that aside.

To summarize: Yes, it's a real requirement due to JInput and platform PHP
runtime options that magic quotes gpc cannot be enabled. However, something
can be done on the Application side of things, so, Nick was right to
discuss it on the CMS list.

I am sorry, Nick, for wasting your time and  recommending to bring the
discussion here. You had the right place to begin with.

On Tue, Aug 21, 2012 at 2:57 PM, Rouven Weßling <m...@rouvenwessling.de>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nick Savov  
View profile  
 More options Aug 21 2012, 5:39 pm
From: "Nick Savov" <n...@iowawebcompany.com>
Date: Tue, 21 Aug 2012 16:39:15 -0500
Local: Tues, Aug 21 2012 5:39 pm
Subject: Re: [jplatform] Joomla 3 magic_quotes_gpc = Off Requirement
No problem.  It's not a big deal :P

I'm still working on figuring out the intricacies of platform fixes vs CMS
fixes, so this was a good exercise :)

Kind regards,
Nick


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rouven Weßling  
View profile   Translate to Translated (View Original)
 More options Aug 21 2012, 5:45 pm
From: Rouven Weßling <m...@rouvenwessling.de>
Date: Tue, 21 Aug 2012 23:45:36 +0200
Local: Tues, Aug 21 2012 5:45 pm
Subject: Re: [jplatform] Joomla 3 magic_quotes_gpc = Off Requirement

On 21.08.2012, at 23:39, "Nick Savov" <n...@iowawebcompany.com> wrote:

> No problem.  It's not a big deal :P

> I'm still working on figuring out the intricacies of platform fixes vs CMS
> fixes, so this was a good exercise :)

No big deal. It's sometimes hard to distinguish and the line is blurry anyway.

Best regards
Rouven

  smime.p7s
6K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »