ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

"Invalid GET Data" passing URLs as URL parameters

June 17, 2010 12:04pm

Subscribe [1]
  • #1 / Jun 17, 2010 12:04pm

    WDBookassist

    26 posts

    Hello all,

    I´m getting some infuriating “Invalid GET Data” errors on a site I´m building.

    I´m assuming these are completely unsurmountable security features (although some have expressed the opinion to me that it should be allowable to pass complex urls as url parameters).

    Basically it boils down to: is there any possible way to get this (simplified) example to work?

    <a href="http://www.example.com/?test=example2.com?test2=y">http://www.example.com/?test=example2.com?test2=y</a>

    I don´t even really need test, I just need the other parameters. Working with an embedded system so if I could find a fix my end it would save me a lot of trouble. Do I have any options?

    thanks,
    Pierce

  • #2 / Jun 17, 2010 12:25pm

    ender

    1644 posts

    I believe this should be constructed a little differently, though it may still get rejected by EE:

    <a href="http://www.example.com/?test=example2.com&test2=y">http://www.example.com/?test=example2.com&test2=y</a>
  • #3 / Jun 17, 2010 12:31pm

    WDBookassist

    26 posts

    Hi Ender,

    That actually doesn´t get rejected by EE. Well, it may not be passing the parameters properly, but it doesn´t cause “Invalid GET Data” failure.

    What I originally posted is what i mean, i.e. passing a URL as a parameter that itself has URL parameters. Essentially the existence of two questions marks in the URL.

    http://expressionengine.com/?test=example2.com?test2=y

    Thanks,
    Pierce

  • #4 / Jun 17, 2010 12:37pm

    ender

    1644 posts

    ahh I see.  I thought it was two separate variables (test and test2).

    In that case you’ll need to url encode the URL passed as a parameter:

    <a href="http://www.example.com/?test=example2.com%3Ftest2%3Dy">http://www.example.com/?test=example2.com%3Ftest2%3Dy</a>
  • #5 / Jun 17, 2010 12:40pm

    WDBookassist

    26 posts

    Sorry, I should have mentioned, but it´s actually already encoded. I just decoded it for the purpose of the example.

    Still an error, see?
    http://expressionengine.com/?test=example2.com?test2=y

  • #6 / Jun 17, 2010 12:44pm

    WDBookassist

    26 posts

    <a href="http://expressionengine.com/?test=example2.com?test2=y">http://expressionengine.com/?test=example2.com?test2=y</a>

    Sorry, the forum is decoding my link. Copy and paste this for the error.

  • #7 / Jun 17, 2010 12:47pm

    WDBookassist

    26 posts

    Aie, still doing it. How are you posting encoded characters?

    In any case, copy your encoded example onto http://expresseionengine.com and you will see the “Invalid GET Data”.

  • #8 / Jun 17, 2010 12:56pm

    ender

    1644 posts

    % 25 (no space) is an encoded percent sign.  so to show the encoded equal sign you have to type:

    %253D

    I think that EE is probably hitting you with the url restrictions now that everything is properly encoded.  Might be nothing you can do short of hacking that security out of the core files.

  • #9 / Jun 18, 2010 10:24am

    WDBookassist

    26 posts

    Thanks, Ender.

    I’ll have another look around, see what I can find.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases