summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-02-15 10:51:28 +0200
committerAlon Levy <alon@pobox.com>2015-02-15 10:51:28 +0200
commitff42934721e862241b0b2dd1e310ef567e552436 (patch)
tree77673e63b9514d2bce4dc2cdf31a0c579215b16d /src
parent04acbda0532503718cea2ae220312fb5d699618c (diff)
client/url clean: fix to allow empty urls
Diffstat (limited to 'src')
-rw-r--r--src/client/view/node_info.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/view/node_info.js b/src/client/view/node_info.js
index 99452b1f..1c3567de 100644
--- a/src/client/view/node_info.js
+++ b/src/client/view/node_info.js
@@ -8,6 +8,9 @@ var d = null,
function clean_url(candidate_url)
{
+ if (candidate_url.length == 0) {
+ return '';
+ }
if (candidate_url.search('://') != -1) {
return candidate_url;
}