better param parsing #36
Nav recenzentu
Etiķetes
Nav etiķešu
feature
Nav atskaites punktu
Nav atbildīgo
2 dalībnieki
Paziņojumi
Izpildes termiņš
Izpildes termiņš nav uzstādīts.
Atkarības
Nav atkarību.
Atsaucas uz: coolaj86/telebit.js#36
Notiek ielāde…
Atsaukties uz šo jaunā problēmā
No description provided.
Dzēst atzaru "params-parsing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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