Page MenuHomeDevCentral

D95.diff
No OneTemporary

D95.diff

diff --git a/lists/replace.php b/lists/replace.php
--- a/lists/replace.php
+++ b/lists/replace.php
@@ -120,7 +120,11 @@
if (isset($requestSerialized)) {
$permUrl = "/lists/replace/?r=$requestSerialized";
if (FEATURE_BITLY) {
- $permUrl = bitly_shorten(get_server_url() . $permUrl);
+ try {
+ $permUrl = bitly_shorten(get_server_url() . $permUrl);
+ } catch (Guzzle\Http\Exception\ServerErrorResponseException $ex) {
+ // Degrades silently when bit.ly API throws an error response like a 500.
+ }
}
echo " <p><a href=\"$permUrl\">Permanent link to this query</a></p>\n";
}

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 31, 22:16 (19 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2388542
Default Alt Text
D95.diff (594 B)

Event Timeline