summary refs log tree commit diff
path: root/bin/sup.sh
diff options
context:
space:
mode:
authorC. McEnroe <june@causal.agency>2021-10-04 10:49:09 -0400
committerC. McEnroe <june@causal.agency>2021-10-04 10:49:09 -0400
commitd950fe0e98d6327d073045a0a8b3dbe7ade53149 (patch)
tree995e68d8a3e3f3d97245dfb843566be273c68844 /bin/sup.sh
parentLimit Atom feed to 20 most recent entries (diff)
downloadsrc-d950fe0e98d6327d073045a0a8b3dbe7ade53149.tar.gz
src-d950fe0e98d6327d073045a0a8b3dbe7ade53149.zip
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.
Diffstat (limited to '')
-rw-r--r--bin/sup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sup.sh b/bin/sup.sh
index 1772f31..a261cb7 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=$(