better param parsing #36

Fusionnée
coolaj86 a fusionné 1 révision(s) à partir de params-parsing vers master 2019-05-29 21:38:17 +00:00
Propriétaire

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
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`
Ghost a approuvé ces modifications 2019-05-29 01:49:48 +00:00.
@ -4,3 +4,3 @@
document.body.hidden = false;
var hash = window.location.hash.substr(1);
var hash = window.location.hash.replace(/^[\/#?]+/, '');
Première contribution

Would #? to be safe, but I think inside a square bracket it's fine.

Would \#\? to be safe, but I think inside a square bracket it's fine.
Auteur
Propriétaire

true on both accounts

true on both accounts
coolaj86 a fermé cette demande d'ajout 2019-05-29 21:38:17 +00:00.
Auteur
Propriétaire

Thanks @mikegwhit

Thanks @mikegwhit
Connectez-vous pour rejoindre cette conversation.
Sans évaluateur
Sans labels
feature
Sans jalon
Sans assignation
2 participants
Notifications
Échéance
La date d’échéance est invalide ou hors plage. Veuillez utiliser le format 'aaaa-mm-dd'.

Aucune échéance n'a été définie.

Dépendances

Aucune dépendance définie.

Référence : coolaj86/telebit.js#36
Sans contenu.