Welcome Guest, Not a member yet? Register   Sign In
Please consider querystring support in 2.x
#51

[eluser]WanWizard[/eluser]
Yes, I did. But before I could finish my reply to that I had to go into a meeting. Have to make some money every now and then... Wink

[quote author="skunkbad" date="1280490971"]1) Once we are getting the value of allow_get_array from our new config variable, why do we care if there is a enable_query_strings variable in the Input class? It doesn't seem to get used anywhere in the class. Are other classes checking this value here instead of getting it from the config class?
2) What is the reason why the Input class needs to load between Config and URI?[/quote]
Good questions.

I just ran an svn diff and posted the results here, might be that some leftovers from earlier changes made it to the diff.

I'll review the changes, you could probably get away with simply changing
Code:
$this->allow_get_array = ($CFG->item('enable_query_strings') === TRUE) ? TRUE : FALSE;
to
Code:
$this->allow_get_array = ($CFG->item('allow_get_array') === TRUE) ? TRUE : FALSE;
and adding that config value to your config file.


EDIT: no, you need the modification of URI.php too, to avoid using $_GET when the uri_protocol is AUTO:
Code:
if ($this->config->item('enable_query_strings') === TRUE && is_array($_GET) && count($_GET) == 1 && trim(key($_GET), '/') != '')

EDIT2: I now realise where the diff entries come from. I first modified the meaning of the existing config key 'enable_query_string', which required modifications in codeigniter.php and router.php as well. I decided later that it wasn't handy, and created the new 'allow_get_array' config key, which is a much simpler change. Unfortunately, I generated the diff using the wrong repo revisions as reference, which severly messed things up.

Thanks for pointing this out, and sorry to all of you, for making this sound more complicated than it was.


Messages In This Thread
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 12:52 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 01:55 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 02:45 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 02:48 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 02:57 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 03:23 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 03:47 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 03:59 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 04:07 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 07:46 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 08:09 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 08:41 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 09:26 AM
Please consider querystring support in 2.x - by El Forum - 06-29-2010, 11:45 AM
Please consider querystring support in 2.x - by El Forum - 06-30-2010, 03:36 AM
Please consider querystring support in 2.x - by El Forum - 06-30-2010, 04:57 AM
Please consider querystring support in 2.x - by El Forum - 06-30-2010, 05:00 AM
Please consider querystring support in 2.x - by El Forum - 06-30-2010, 08:58 AM
Please consider querystring support in 2.x - by El Forum - 06-30-2010, 09:39 AM
Please consider querystring support in 2.x - by El Forum - 06-30-2010, 09:49 AM
Please consider querystring support in 2.x - by El Forum - 07-01-2010, 03:32 AM
Please consider querystring support in 2.x - by El Forum - 07-01-2010, 11:50 AM
Please consider querystring support in 2.x - by El Forum - 07-01-2010, 12:11 PM
Please consider querystring support in 2.x - by El Forum - 07-01-2010, 09:14 PM
Please consider querystring support in 2.x - by El Forum - 07-02-2010, 02:13 AM
Please consider querystring support in 2.x - by El Forum - 07-13-2010, 03:49 AM
Please consider querystring support in 2.x - by El Forum - 07-13-2010, 09:11 AM
Please consider querystring support in 2.x - by El Forum - 07-13-2010, 10:28 AM
Please consider querystring support in 2.x - by El Forum - 07-13-2010, 11:29 AM
Please consider querystring support in 2.x - by El Forum - 07-13-2010, 01:16 PM
Please consider querystring support in 2.x - by El Forum - 07-24-2010, 02:14 AM
Please consider querystring support in 2.x - by El Forum - 07-24-2010, 02:24 AM
Please consider querystring support in 2.x - by El Forum - 07-26-2010, 02:47 AM
Please consider querystring support in 2.x - by El Forum - 07-26-2010, 03:33 AM
Please consider querystring support in 2.x - by El Forum - 07-26-2010, 03:41 AM
Please consider querystring support in 2.x - by El Forum - 07-28-2010, 11:11 AM
Please consider querystring support in 2.x - by El Forum - 07-28-2010, 11:42 AM
Please consider querystring support in 2.x - by El Forum - 07-28-2010, 03:32 PM
Please consider querystring support in 2.x - by El Forum - 07-28-2010, 03:39 PM
Please consider querystring support in 2.x - by El Forum - 07-28-2010, 03:58 PM
Please consider querystring support in 2.x - by El Forum - 07-29-2010, 01:47 PM
Please consider querystring support in 2.x - by El Forum - 07-29-2010, 04:36 PM
Please consider querystring support in 2.x - by El Forum - 07-29-2010, 06:19 PM
Please consider querystring support in 2.x - by El Forum - 07-29-2010, 07:03 PM
Please consider querystring support in 2.x - by El Forum - 07-29-2010, 10:25 PM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 12:26 AM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 12:56 AM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 01:09 AM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 01:28 AM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 01:36 AM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 03:54 AM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 10:34 AM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 11:31 AM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 03:09 PM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 04:51 PM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 04:52 PM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 06:10 PM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 08:35 PM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 08:41 PM
Please consider querystring support in 2.x - by El Forum - 07-30-2010, 10:20 PM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 02:35 AM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 05:57 AM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 06:07 AM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 07:34 AM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 09:40 AM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 10:08 AM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 07:08 PM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 09:50 PM
Please consider querystring support in 2.x - by El Forum - 07-31-2010, 11:50 PM
Please consider querystring support in 2.x - by El Forum - 08-01-2010, 01:27 AM
Please consider querystring support in 2.x - by El Forum - 08-01-2010, 01:42 AM
Please consider querystring support in 2.x - by El Forum - 08-01-2010, 03:00 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 04:37 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 05:01 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 05:06 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 05:17 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 05:28 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 05:31 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 05:39 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 05:45 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 05:54 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 06:03 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 06:15 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 09:04 AM
Please consider querystring support in 2.x - by El Forum - 08-02-2010, 10:57 AM
Please consider querystring support in 2.x - by El Forum - 08-03-2010, 10:56 PM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 01:09 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 01:19 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 01:40 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 02:06 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 02:08 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 02:18 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 02:37 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 02:39 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 03:51 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 04:01 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 04:55 AM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 12:50 PM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 02:55 PM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 04:47 PM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 06:00 PM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 06:55 PM
Please consider querystring support in 2.x - by El Forum - 08-04-2010, 07:08 PM
Please consider querystring support in 2.x - by El Forum - 08-07-2010, 12:04 AM
Please consider querystring support in 2.x - by El Forum - 08-07-2010, 09:31 AM
Please consider querystring support in 2.x - by El Forum - 08-23-2010, 02:13 PM
Please consider querystring support in 2.x - by El Forum - 08-23-2010, 02:30 PM
Please consider querystring support in 2.x - by El Forum - 08-23-2010, 02:31 PM
Please consider querystring support in 2.x - by El Forum - 08-23-2010, 03:41 PM
Please consider querystring support in 2.x - by El Forum - 08-23-2010, 05:09 PM
Please consider querystring support in 2.x - by El Forum - 08-23-2010, 06:36 PM
Please consider querystring support in 2.x - by El Forum - 08-24-2010, 01:32 PM
Please consider querystring support in 2.x - by El Forum - 08-24-2010, 01:32 PM
Please consider querystring support in 2.x - by El Forum - 08-25-2010, 05:33 PM
Please consider querystring support in 2.x - by El Forum - 08-25-2010, 06:51 PM
Please consider querystring support in 2.x - by El Forum - 08-26-2010, 12:48 AM
Please consider querystring support in 2.x - by El Forum - 08-26-2010, 05:51 AM
Please consider querystring support in 2.x - by El Forum - 08-26-2010, 10:16 AM
Please consider querystring support in 2.x - by El Forum - 08-26-2010, 10:16 AM
Please consider querystring support in 2.x - by El Forum - 08-26-2010, 11:19 AM
Please consider querystring support in 2.x - by El Forum - 08-26-2010, 12:28 PM
Please consider querystring support in 2.x - by El Forum - 08-26-2010, 02:27 PM
Please consider querystring support in 2.x - by El Forum - 08-26-2010, 04:34 PM
Please consider querystring support in 2.x - by El Forum - 08-27-2010, 01:32 AM
Please consider querystring support in 2.x - by El Forum - 08-27-2010, 02:21 AM
Please consider querystring support in 2.x - by El Forum - 08-27-2010, 07:36 AM
Please consider querystring support in 2.x - by El Forum - 08-27-2010, 02:52 PM
Please consider querystring support in 2.x - by El Forum - 08-27-2010, 04:15 PM
Please consider querystring support in 2.x - by El Forum - 09-02-2010, 03:08 AM
Please consider querystring support in 2.x - by El Forum - 09-02-2010, 07:46 AM
Please consider querystring support in 2.x - by El Forum - 09-02-2010, 08:30 AM
Please consider querystring support in 2.x - by El Forum - 09-02-2010, 11:53 AM
Please consider querystring support in 2.x - by El Forum - 09-02-2010, 03:41 PM
Please consider querystring support in 2.x - by El Forum - 11-14-2010, 04:58 PM
Please consider querystring support in 2.x - by El Forum - 11-14-2010, 05:01 PM
Please consider querystring support in 2.x - by El Forum - 11-14-2010, 05:33 PM
Please consider querystring support in 2.x - by El Forum - 11-14-2010, 10:28 PM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 04:57 AM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 10:19 AM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 10:29 AM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 10:47 AM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 10:53 AM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 11:11 AM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 11:23 AM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 01:39 PM
Please consider querystring support in 2.x - by El Forum - 11-15-2010, 04:00 PM
Please consider querystring support in 2.x - by El Forum - 04-25-2012, 06:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB