summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicky Elrod <codeblock@fedoraproject.org>2016-06-21 00:44:15 +0000
committerRicky Elrod <codeblock@fedoraproject.org>2016-06-21 00:44:15 +0000
commit20016d1b053f8e1c21c4ddaf04f0054cf1208f03 (patch)
tree28909985ca1735441fde14462281a03eb547f919
parent82f1ddf39350a24c43b4eef22a8f7e63d56a2dbe (diff)
downloadansible-20016d1b053f8e1c21c4ddaf04f0054cf1208f03.tar.gz
ansible-20016d1b053f8e1c21c4ddaf04f0054cf1208f03.tar.xz
ansible-20016d1b053f8e1c21c4ddaf04f0054cf1208f03.zip
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>
-rw-r--r--roles/paste/files/class_urlshort.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/paste/files/class_urlshort.php b/roles/paste/files/class_urlshort.php
index 6842f8db2..e4ba03c48 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);