Skip to content

deparam.querystring() returns abnormal results for URLs without a query string #34

Open

Description

@acdha

Normally $.deparam.querystring() will return an object containing only the query string values. If called on a URL which does not contain ? it will return an object containing the URL itself, e.g.

$.deparam.querystring("http://google.com/")
Object
    http://google.com/: ""
    __proto__: Object

This means that anyone intending to pass the result back into a function like $.param.querystring has to remember to include a check for this condition if the URL lacks a querystring altogether

Activity

  1. cowboy commented on Oct 11, 2011

    @cowboy
    Owner

    Good point, thanks. I'll look into fixing this.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions