From 2cc37300f9e88549e93a2c8d4f0f8170695e592a Mon Sep 17 00:00:00 2001 From: Phil Burton Date: Thu, 11 Jan 2018 11:11:15 +0000 Subject: Urlencode the paste input --- blapaste.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3