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:
parent
82f1ddf393
commit
20016d1b05
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue