Age | Commit message (Collapse) | Author |
|
Slightly different behavior based on if it's a hard skip, auth skip, or
post/download failure skip. HARD_SKIPS array to control which services
are always skipped. Add total skips and fail logs to summary.
|
|
|
|
Posts test/test.txt onto any pastebins it can. Downloads the resulting
pate into a temp dir as /tmp/wgetpaste_test.XXXXX/<service>.txt. Runs
diff(1) (ignoring trailing whitespace) to compare the download with the
test data.
|
|
'echo -e' is used to prepare data for dpaste. However if
`echo -e "${content}"` is used, the content gets interpreted as well.
This results in constructs such as '\0' getting misinterpreted as the
byte 0x00. As a result, the interperted context can result in output
not compatible with dpaste.
fixes bug #25
|
|
|
|
|
|
|
|
|
|
escape_description_dpaste() and escape_input_dpaste() are missing which
causes the default escape function to be used. This results in mangled
pastes.
Fixes: #22
|
|
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).
|
|
|
|
|
|
Updates the code to use the new dpaste API and corrects the max
dpaste size limit value.
|
|
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).
|
|
As previously implemented REGEX_RAW_ix_io would cause the URL to
be printed twice. This change corrects that error.
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>
|
|
|
|
|
|
|
|
I decided for MIT instead of CC0/The Unlicense since MIT explicitly mentions
that this software comes with NO WARRANTY
|
|
poundpython is no more :c
|
|
|
|
This reverts commit cc4f2d5f6318647bc6bd7f163aeb613324afc074.
|
|
|
|
|
|
Re-add bpaste.net
|
|
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.
|
|
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.
|
|
Nuke poundpython, default to gists
|
|
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
|
|
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
|
|
|
|
|
|
|
|
Change-Id: Icaeae7f15d72030dead465f7d63143c3dcbd59c9
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
|
|
Change-Id: If9fa1261dd65471d2ba6a8d13737339f119c44de
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
|
|
Change-Id: Iffaa8abba9c83757f840ebd1d7c7b2ba84968027
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
|
|
only print url to stdout
|
|
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
|
|
|
|
|