summary refs log tree commit diff
path: root/bin/
diff options
authorC. McEnroe <>2021-10-04 10:49:09 -0400
committerC. McEnroe <>2021-10-04 10:49:09 -0400
commitd950fe0e98d6327d073045a0a8b3dbe7ade53149 (patch)
tree995e68d8a3e3f3d97245dfb843566be273c68844 /bin/
parentLimit Atom feed to 20 most recent entries (diff)
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 '')
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ b/bin/
index 1772f31..a261cb7 100644
--- a/bin/
+++ b/bin/
@@ -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...'