summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-02-19Use new dpaste APINicholas Vinson
Updates the code to use the new dpaste API and corrects the max dpaste size limit value.
2021-02-19Add size limit for ix_io.Nicholas Vinson
Service owner states in https://github.com/rupa/sprunge/issues/46 that the size limit for both ix.io and sprunge.us is "roughly a meg". As "meg" appears to mean 1 MiB, the size is set at 1 million bytes (1 MB).
2021-02-19Fix REGEX_RAW_ix_ioNicholas Vinson
As previously implemented REGEX_RAW_ix_io would cause the URL to be printed twice. This change corrects that error.
2020-10-19Add ix.io pastebinNicholas Vinson
2020-10-19Update post handling logicNicholas Vinson
The current post handling logic assumes that either POST_${engine} is defined and is a string, or json_${engine} is defined and is a function. This logic does not work for paste bins such as ix.io. To make the logic more flexible, the string-function hybrid approach has been replaced with a function call chain. The entry-point to this chain is always POST_${engine} NICK DESCRIPTION LANGUAGE EXPIRATION CVT_TABS INPUT and for most services POST_${engine} is defined as: POST_generic <post format string> $1 $2 $3 $4 $5 $6 where POST_generic is the original logic for handling post requests. For JSON post submissions, the coresponding json_${engine} function is renamed to POST_${engine} and the arguments adjusted to match the calling convention mentioned above.
2020-07-31Version 2.30.Rasmus Thomsen
2020-07-31Hardcode 'v4' on the help message's gitlab URLbcattaneo
2020-07-31Fix snippets raw regexbcattaneo
2020-07-31Use a new array for all additional headersbcattaneo
2020-07-31Restore version 2.29bcattaneo
2020-07-31Add missing gitlab URL to help messagebcattaneo
2020-07-31Add support for gitlab snippetsbcattaneo
2020-07-07Fallback location regex confusion fixNicholas Vinson
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 <nvinson234@gmail.com>
2020-07-07wgetpaste.spec: Add spec file for building RPMsWulf C. Krueger
2019-07-23Fix handling of bpaste urls.Bo Ørsted Andresen
2019-06-12Version 2.29.Rasmus Thomsen
2019-06-12License under MITRasmus Thomsen
I decided for MIT instead of CC0/The Unlicense since MIT explicitly mentions that this software comes with NO WARRANTY
2019-06-12Remove poundpython, make dpaste the defaultRasmus Thomsen
poundpython is no more :c
2019-06-06Fix raw URLs with dpasteHeiko Becker
2016-07-18Revert "change default service to gists"Bo Ørsted Andresen
This reverts commit cc4f2d5f6318647bc6bd7f163aeb613324afc074.
2016-07-18Don't quote empty parameter.Bo Ørsted Andresen
2016-07-18Always tail.Bo Ørsted Andresen
2016-07-18Merge pull request #4 from nvinson/bpasteBo Ørsted Andresen
Re-add bpaste.net
2016-07-08Re-add poundpythonNicholas Vinson
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.
2016-07-07Re-add bpaste.netNicholas Vinson
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.
2016-06-07Merge pull request #3 from Keruspe/masterBo Ørsted Andresen
Nuke poundpython, default to gists
2016-06-03nuke poundpython: doesn't work anymoreMarc-Antoine Perennou
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2016-06-03change default service to gistsMarc-Antoine Perennou
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2016-03-08Version 2.27.Bo Ørsted Andresen
2016-03-08Default to secret gists by setting PUBLIC_gists=falseRenato Alves
2015-02-06Ignore .git files in git archive.Bo Ørsted Andresen
2015-02-06nuke ca: it's brokenMarc-Antoine Perennou
Change-Id: Icaeae7f15d72030dead465f7d63143c3dcbd59c9 Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2015-02-06nuke bpaste: it's brokenMarc-Antoine Perennou
Change-Id: If9fa1261dd65471d2ba6a8d13737339f119c44de Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2015-02-06make poundpython the default serviceMarc-Antoine Perennou
Change-Id: Iffaa8abba9c83757f840ebd1d7c7b2ba84968027 Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2015-01-18Merge pull request #1 from Keruspe/masterBo Ørsted Andresen
only print url to stdout
2015-01-18only print url to stdoutMarc-Antoine Perennou
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2014-09-18Add .gitignoreIngmar Vanhassel
2014-09-18Version .Ingmar Vanhassel
2014-05-23Version 2.25.Ingmar Vanhassel
2014-05-23compare_tolower already runs tolower on both argumentsIngmar Vanhassel
2014-05-23Version 2.24.Bo Ørsted Andresen
2014-05-23Fix instructions to rename configuration filesIngmar Vanhassel
Please move /etc/wgetpaste to /etc/wgetpaste Please move /home/ingmar/.wgetpaste to /home/ingmar/.wgetpaste
2014-05-23Fix RAW support for bpasteIngmar Vanhassel
2013-10-29Make comparison of languages and expirations case-insensitive.Bo Ørsted Andresen
2013-09-24Version 2.23.Bo Ørsted Andresen
2013-09-24Fix --raw for gists.Bo Ørsted Andresen
2013-09-24Add information about new HEADER_ variable to --helpTimo Rothenpieler
2013-09-24Add HEADER_$SERVICE variable to pass an additional http headerTimo Rothenpieler
Usefull for example for github gists, where users can do the following in their configuration to paste as their github user: HEADER_gists="Authorization: token 1234abc56789..."
2013-09-24Add new language 'Auto' to gists and set it as defaultTimo Rothenpieler
This makes gist pick the language based on the original file extension
2013-09-24Fix regex for gists, so it doesn't find userprofile urls when authenticatedTimo Rothenpieler