Commit 98decdd3 authored by Pallav Agarwal's avatar Pallav Agarwal

Fix the infinite loop

parent 46b64fa5
Pipeline #2721028 (#) passed with stage
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
|| window.location.toString().match(/http.?:\/\/var/))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment