summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-10-04 10:49:09 -0400
committerJune McEnroe <june@causal.agency>2021-10-04 10:49:09 -0400
commitd950fe0e98d6327d073045a0a8b3dbe7ade53149 (patch)
tree995e68d8a3e3f3d97245dfb843566be273c68844
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 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=$(
e 2021-01-20Avoid matching ':' in make tagsJune McEnroe 2021-01-19Prefer tag matches not preceded by [[:alnum:]]June McEnroe 2021-01-19Escape \ and / in mtags search patternsJune McEnroe 2021-01-20Use mtags in source-filterJune McEnroe 2021-01-19Add mtags to generate tags for make and mdocJune McEnroe 2021-01-19Map tags to IDs using only [[:alnum:]-._]June McEnroe 2021-01-19Don't use a pager if reading standard inputJune McEnroe 2021-01-19Support BSD make syntax and match *.amJune McEnroe 2021-01-19Match tab following escaped newline in make assignmentsJune McEnroe 2021-01-18Allow matching lexers using first input lineJune McEnroe