all repos — honk @ f8dfc0b4658be50b27e20831673b876823ed6c29

my fork of honk

encodeURIComponent is how we spell escape in this century
from thinegen
Ted Unangst tedu@tedunangst.com
Wed, 04 Jan 2023 13:51:07 -0500
commit

f8dfc0b4658be50b27e20831673b876823ed6c29

parent

60c285fc6139749efa987f6fade6cc83fd6431f1

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
M views/honkpage.jsviews/honkpage.js

@@ -2,7 +2,7 @@ function encode(hash) {

var s = [] for (var key in hash) { var val = hash[key] - s.push(escape(key) + "=" + escape(val)) + s.push(encodeURIComponent(key) + "=" + encodeURIComponent(val)) } return s.join("&") }
M views/wonk.jsviews/wonk.js

@@ -6,7 +6,7 @@ host.correctAnswer = word

host.guesses = [] host.xid = xid var xhr = new XMLHttpRequest() - xhr.open("GET", "/bloat/wonkles?w=" + escape(wordlist)) + xhr.open("GET", "/bloat/wonkles?w=" + encodeURIComponent(wordlist)) xhr.responseType = "json" xhr.onload = function() { var wordlist = xhr.response.wordlist