]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 183774: makes duplicates.xul compute a correct base URL when jarred so...
authormyk%mozilla.org <>
Mon, 26 Jan 2004 02:47:16 +0000 (02:47 +0000)
committermyk%mozilla.org <>
Mon, 26 Jan 2004 02:47:16 +0000 (02:47 +0000)
r=gerv
a=myk

js/duplicates.js

index b1e94a8a67570f47f9c86115998a82e5ac862376..ccad539e30cd9a1d8cf202757814445eb1f79830 100644 (file)
@@ -22,7 +22,7 @@
 window.addEventListener('load', loadData, false);
 
 // The base URL of this Bugzilla installation; derived from the page's URL.
-var gBaseURL = window.location.href.replace(/duplicates\.(jar!|xul).*/, "");
+var gBaseURL = window.location.href.replace(/(jar:)?(.*?)duplicates\.(jar!|xul).*/, "$2");
 
 function loadData()
 {