mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 13:59:47 +01:00
WebPaste: paste as text/plain to 0x0.st (prevents .bin pastes)
This commit is contained in:
parent
9ebf188530
commit
baa726bec6
@ -765,7 +765,7 @@ sub truncate_result {
|
|||||||
$trunc .= "; see $paste_result for full text.]";
|
$trunc .= "; see $paste_result for full text.]";
|
||||||
} else {
|
} else {
|
||||||
# an error or something else
|
# an error or something else
|
||||||
$trunc .= "$paste_result]";
|
$trunc .= "; $paste_result]";
|
||||||
}
|
}
|
||||||
|
|
||||||
$paste_result //= 'not pasted';
|
$paste_result //= 'not pasted';
|
||||||
|
@ -93,7 +93,7 @@ sub paste_0x0st {
|
|||||||
|
|
||||||
return $ua->post(
|
return $ua->post(
|
||||||
"https://0x0.st",
|
"https://0x0.st",
|
||||||
[ file => [ undef, "file", Content => $text ] ],
|
[ file => [ undef, "foo", Content => $text, 'Content-Type' => 'text/plain' ] ],
|
||||||
Content_Type => 'form-data'
|
Content_Type => 'form-data'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user