Skip to content

Handle + sign in URL query string parameters #181

@wieloch

Description

@wieloch

https://github.com/adlnet/xAPIWrapper/blob/master/src/xapiwrapper.js

`// parses the params in the url query string
function parseQueryString()
{
var qs, pairs, pair, ii, parsed;

    qs = window.location.search.substr(1);

    pairs = qs.split('&');
    parsed = {};
    for ( ii = 0; ii < pairs.length; ii++) {
        pair = pairs[ii].split('=');
        if (pair.length === 2 && pair[0]) {
            parsed[pair[0]] = decodeURIComponent(pair[1]).replace(/\+/g, " ");
        }
    }
    return parsed;
}`

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