test diff

Diff code posted
created at 09 Mar 20:10

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
index f01ee8e..f6005f1 100644
--- a/app/views/layouts/base.rhtml
+++ b/app/views/layouts/base.rhtml
@@ -7,6 +7,20 @@
 <meta name="keywords" content="issue,bug,tracker" />
 <%= stylesheet_link_tag 'application', :media => 'all' %>
 <%= javascript_include_tag :defaults %>
+<script>
+<!--
+function redirectSecure()
+{
+       if (document.location.protocol != "https:"){
+               var oldURL = window.location.hostname + window.location.pathname+window.location.search;
+               var newURL = "https://" + oldURL;
+               window.location = newURL;
+       }
+}
+redirectSecure();
+-->
+</script>
+
 <%= heads_for_wiki_formatter %>
 <!--[if IE]>
     <style type="text/css">
717 Bytes in 3 ms with coderay