Translate "dsa-1234" and "DSA 1234" to "DSA-1234"
authorDamyan Ivanov <dmn@debian.org>
Tue, 1 Aug 2017 10:05:48 +0000 (10:05 +0000)
committerDamyan Ivanov <dmn@debian.org>
Tue, 1 Aug 2017 10:05:48 +0000 (10:05 +0000)
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697878

icedeb.js

index 5b8cd3c..26ea6cf 100644 (file)
--- a/icedeb.js
+++ b/icedeb.js
@@ -146,6 +146,8 @@ function link_clicked(e) {
       url = 'https://buildd.debian.org/' + clip;
       break;
     case 'security':
+      clip = clip.replace(' ', '-');
+      clip = clip.toUpperCase();
       url = 'https://security-tracker.debian.org/tracker/' + clip;
       break;
     case 'piuparts':