Closed chrisguida closed 3 years ago
This is also happening outside of the docker image, just using cargo.
Just ran the command you sent:
docker run --network host mkaczanowski/pastebin --address localhost --port 8000
Then went to Firefox and entered a message into the textbox, then hit Send. No change, no success message, nothing. Just to make sure, I deleted mkaczanowski/pastebin:latest from my local docker images and ran it again. Same problem. I've attached what the debug window looks like. When I reset git back to two commits ago, the sending works and I don't get this error message. Same problem on Chrome, same error message.
--Chris
On Tue, Oct 27, 2020 at 5:11 PM Mateusz Kaczanowski < notifications@github.com> wrote:
hmm. I can't repro this...
docker run --network host mkaczanowski/pastebin --address localhost --port 8000
and then on chrome it works fine, can you paste me a few screenshots of what you see?
I guess github doesn't pick up attachments from emails, and for some reason I don't see your comment here on this issue, but here's the screenshot I sent
huh, after cloning repo again I see the same issue. Dunno how rust compiler caches things but for sure I couldn't see this.
Anyway, thanks for reporting. The issue is that js_init gets escaped, so I enforced no_escape: https://github.com/mkaczanowski/pastebin/commit/661b4a8869e80c955be2ffc718dc9a2319420668
Sweet, thanks!
Hi, I can no longer post anything if I use the most recent version of the docker image. It seems to be an issue with calling "init_plugins()" in custom.js. This error is printed to the console upon launching the page:
Seems it doesn't like this line in init_plugins():
Am I doing something wrong?
Thanks,
--Chris