Use ?strip for da.gd, since the fpaste client hardcodes the line number that the JSON response ends in, and sticky-notes breaks JSON spec, and software never works.

Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
Rick Elrod 2016-06-21 00:44:15 +00:00
parent 82f1ddf393
commit 20016d1b05

View file

@ -21,7 +21,7 @@ class URLShortener
return $long_url;
}
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://da.gd/s");
curl_setopt($ch, CURLOPT_URL,"https://da.gd/s?strip");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array('url' => $long_url)));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);