If the string "Location:" occurs in the input, wgetpaste gets confused and outputs garbage as the pastebin's location: $ echo "abc def Location: http://example.com/" | wgetpaste Your paste can be seen here: http://example.com/</textarea>
because the `get_url()` function has a greedy regexp like: sed -n -e 's|^.*Location: \(https\{0,1\}://[^ ]*\).*$|\1|p' <<< "$*" I do not know will this help or not if we are getting rid of ^.* (I mean, surely this will help, but I think we gonna face some tricky cases, maybe)
Looks like this works with 2.29