Hyperlinked ssl error page not useful for wildcards. b=432491 r=gavin a=beltzner

This commit is contained in:
johnath@mozilla.com 2008-05-07 13:39:53 -07:00
parent 3fcd67d676
commit 806e648cde

View File

@ -223,6 +223,11 @@
var thisHost = document.location.hostname;
var proto = document.location.protocol;
// If okHost is a wildcard domain ("*.example.com") let's
// use "www" instead. "*.example.com" isn't going to
// get anyone anywhere useful. bug 432491
okHost = okHost.replace(/^\*\./, "www.");
/* case #1:
* example.com uses an invalid security certificate.
*