diff options
| author | Alon Levy <alon@pobox.com> | 2015-02-15 10:51:28 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-02-15 10:51:28 +0200 |
| commit | ff42934721e862241b0b2dd1e310ef567e552436 (patch) | |
| tree | 77673e63b9514d2bce4dc2cdf31a0c579215b16d | |
| parent | 04acbda0532503718cea2ae220312fb5d699618c (diff) | |
client/url clean: fix to allow empty urls
| -rw-r--r-- | src/client/view/node_info.js | 3 |
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; } |
