From 20016d1b053f8e1c21c4ddaf04f0054cf1208f03 Mon Sep 17 00:00:00 2001 From: Ricky Elrod Date: Tue, 21 Jun 2016 00:44:15 +0000 Subject: [PATCH] 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 --- roles/paste/files/class_urlshort.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/paste/files/class_urlshort.php b/roles/paste/files/class_urlshort.php index 6842f8db2e..e4ba03c489 100644 --- a/roles/paste/files/class_urlshort.php +++ b/roles/paste/files/class_urlshort.php @@ -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);