Skip to content

url.indexOf returning undefined #13

@oliver-moran

Description

@oliver-moran

I don't know enough about the code the understand what was going wrong for me but on line 1152 of firebug-lite.js in version 1.4.0 the variable url was coming in as an Object rather than as a string and so the method url.indexOf was undefined:

this.parseURLParamsArray=function(url){var q=url?url.indexOf("?"):-1;

A patch was to always ensure that url was a string before calling indexOf (i.e. url.toString().indexOf):

this.parseURLParamsArray=function(url){var q=url?url.toString().indexOf("?"):-1;

Sorry for not knowing being able to say why this was happening but I thought it better to report in any case.

And thanks for a great piece of software.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions