Skip to content

Conversation

@nvinson
Copy link
Contributor

@nvinson nvinson commented Jan 8, 2019

The fallback location regex can get confused if the input data contains
URLs, and the confusion will cause wgetpaste to print the wrong link to
the paste.

Updated the regex so it finds the last URL that contains the service
URL. wgetpaste can still get confused after this commit, but this commit
should reduce the likelihood.

Fixes issue #10

nvinson and others added 6 commits January 7, 2019 19:03
Bpaste service switched to https-only and to using pinnwand on the back-end
instead of lodge-it.  This patch makes the necessary changes to wgetpaste, so
that it can upload to bpaste.net again.
The poundpython paste service redirects http requests to https.  However, the
redirect strips the post data.  This patch works around that problem by using
the https URL directly.  The function geturl() is also updated so that it
returns at most one URL.
The fallback location regex can get confused if the input data contains
URLs, and the confusion will cause wgetpaste to print the wrong link to
the paste.

Updated the regex so it finds the last URL that contains the service
URL.  wgetpaste can still get confused after this commit, but this
commit should reduce the likelihood.

Signed-off-by: Nicholas Vinson <[email protected]>
@nvinson nvinson closed this Jan 8, 2019
@nvinson
Copy link
Contributor Author

nvinson commented Jan 8, 2019

Pull request wasn't properly generated. Will recreate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants