summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xblapaste.php2
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);