This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble.git

commit e27377d6fc8f1f4c9b7605316844c53f170f9ff5
Author: Daniel Gruno <humbed...@apache.org>
AuthorDate: Fri Mar 2 16:36:42 2018 +0100

    URLs may sometimes have double slashes in them
---
 ui/js/coffee/widget_top5.coffee | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ui/js/coffee/widget_top5.coffee b/ui/js/coffee/widget_top5.coffee
index 7cd2727..7cddea0 100644
--- a/ui/js/coffee/widget_top5.coffee
+++ b/ui/js/coffee/widget_top5.coffee
@@ -39,6 +39,8 @@ make5 = (obj, json, pos) ->
                 if item.title.length > 40
                     item.title = item.title.toString().substring(0,40) + "..."
                 item.name += ": " + item.title
+            # Sometimes, scanners add a spurious extra slash. nix it.
+            item.url = item.url.replace(/([^:])(\/\/+)/g, '$1/')
             title = new HTML('a', { title: item.tooltip, class: "title", 
href:item.url}, txt(item.name))
             rightInner.inject(title)
         else

-- 
To stop receiving notification emails like this one, please contact
humbed...@apache.org.

Reply via email to