Skip to content

Commit

Permalink
URI encode bearer tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
aunefyren authored Dec 15, 2024
1 parent 29e8279 commit fd6d857
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/js/functions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
function set_cookie(cname, cvalue, exdays) {
cvalue = encodeURI(cvalue)
var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
var expires = "expires="+ d.toUTCString();
Expand Down

0 comments on commit fd6d857

Please sign in to comment.