Skip to content

Don't break when google ad links come in. #602

Closed

Description

@krusynth

Google likes to append things like ?gclid=CjwKEAiAw4e1BRDfi7vghaWU9jESJACzo9juyqmPwqpRWWS9G9NdCWgaYXaVDo1JeCr78JNjgiSi_xoCqhLw_wcB%201%20Comment to urls, which unfortunately causes SD to die horribly. I guess we need a way to ignore query strings like that?

Activity

  1. waldoj commented on Jan 22, 2016

    @waldoj
    Member

    Huh. That's an interesting problem. It seems we could either a) whitelist acceptable query strings or b) blacklist unacceptable ones. Given that the range of B is enormous, but the range of A is quite narrow, I think A is our only option.

    Offhand, the only places on the site that I can think of where we're using query strings are a) search and b) API key activation. If that really is it, then whitelisting should be quite straightforward.

  2. added this to the 1.0 milestone on Jan 22, 2016
  3. krusynth commented on Jan 22, 2016

    @krusynth
    MemberAuthor

    I'm more confused that PHP is balking at query strings in the first place - usually you can do whatever you want on that front without it caring.

  4. waldoj commented on Jan 22, 2016

    @waldoj
    Member

    I actually can't replicate the problem. On Virginia Decoded, the query string you suggested works just fine.

  5. krusynth commented on Jan 22, 2016

    @krusynth
    MemberAuthor

    Au contraire on the root it 404s

  6. waldoj commented on Jan 22, 2016

    @waldoj
    Member

    Oh, that's interesting. So that would seem to point to a routing problem.

  7. krusynth commented on Jan 22, 2016

    @krusynth
    MemberAuthor

    Routing feature.

  8. waldoj commented on Jan 22, 2016

    @waldoj
    Member

    Two sides of the same coin. ;)

  9. krusynth commented on Feb 2, 2016

    @krusynth
    MemberAuthor

    That should do it.

  10. waldoj commented on Feb 2, 2016

    @waldoj
    Member

    👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions