better param parsing #36
Sans évaluateur
Labels
Sans labels
feature
Sans jalon
Sans assignation
2 participants
Notifications
Échéance
Aucune échéance n'a été définie.
Dépendances
Aucune dépendance définie.
Référence : coolaj86/telebit.js#36
Chargement…
Référencer dans un nouveau ticket
Sans contenu.
Supprimer la branche "params-parsing"
La suppression d’une branche est permanente. Bien qu’une branche supprimée puisse temporairement subsister, elle NE PEUT PAS être facilement restaurée. Continuer ?
Removing any and all of the following leading characters before parsing the params:
#/?
.#access_token=x&foo=bar
=>access_token=x&foo=bar
#/?access_token=x&foo=bar
=>access_token=x&foo=bar
#/access_token=x&foo=bar
=>access_token=x&foo=bar
#?access_token=x&foo=bar
=>access_token=x&foo=bar
@ -4,3 +4,3 @@
document.body.hidden = false;
var hash = window.location.hash.substr(1);
var hash = window.location.hash.replace(/^[\/#?]+/, '');
Would #? to be safe, but I think inside a square bracket it's fine.
true on both accounts
Thanks @mikegwhit