diff options
author | Phil Burton <phil@d3r.com> | 2018-01-11 11:11:15 +0000 |
---|---|---|
committer | Phil Burton <phil@d3r.com> | 2018-01-11 11:11:15 +0000 |
commit | 2cc37300f9e88549e93a2c8d4f0f8170695e592a (patch) | |
tree | 9e83bfd455b9015b2737712618c662c2f27ab20b | |
parent | cc50f93b5f05ff043ee885128665626f086e96cd (diff) |
Urlencode the paste input
-rwxr-xr-x | blapaste.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/blapaste.php b/blapaste.php index 6dd8179..db11734 100755 --- a/blapaste.php +++ b/blapaste.php @@ -6,7 +6,7 @@ while (false !== ($line = fgets($stdin))) { $paste .= $line; } $url = "http://p.of.je/submit.php"; -$myvars = "paste=" . $paste; +$myvars = "paste=" . urlencode($paste); $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $myvars); |