Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4077875
D95.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
594 B
Referenced Files
None
Subscribers
None
D95.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D95: Degrade silently bit.ly API call on request failure
Attached
Detach File
Event Timeline
Log In to Comment