From 9b470ca58cfb5b4361ad602f03c781cdb9b1a52c Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Mon, 4 Oct 2021 10:49:09 -0400 Subject: Fix lobsters/tildenews login They started sending links with "&username=june" tacked on after the token. Don't know why since if you load the form with just the token in the URL it still knows your username, and it's not submitted as a hidden field or anything, but whatever. --- bin/sup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/sup.sh b/bin/sup.sh index 1772f312..a261cb7f 100644 --- a/bin/sup.sh +++ b/bin/sup.sh @@ -151,7 +151,7 @@ lobsters() { git fetch-email -i -M Trash \ -F "${lobstersFrom}" -T "${email}" \ -S 'Reset your password' | - sed -n 's|^https://.*[?]token=\(.*\)|\1|p' + sed -n 's|^https://.*[?]token=\([^&]*\).*|\1|p' ) echo 'Fetching CSRF token...' csrf=$( -- cgit 1.4.1