Check-in [cfe1899bbb]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Do not redirect from HTTPS to HTTP when not needed
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: cfe1899bbbc5095b23ee09d7a645662153305dc7
User & Date: rkeene 2020-08-23 19:48:23
Context
2020-08-23
19:48
Integrated SetUID support check-in: fb468fff0e user: rkeene tags: trunk
19:48
Do not redirect from HTTPS to HTTP when not needed check-in: cfe1899bbb user: rkeene tags: trunk
2017-03-16
16:32
Fixed missing semicolons check-in: f6600ad1a1 user: rkeene tags: trunk
Changes

Changes to nano/router.php.

88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
                                }
                            }

                            $ssl = true;
                        }
                    }
                }

                if (!isset($ssl)) {
                    if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
                        header('Location: http://' . $_SERVER['SERVER_NAME'] . '/' . $uri);
                        die();
                    }
                }
            }
            else {
                if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
                    header('Location: http://' . $_SERVER['SERVER_NAME'] . '/' . $uri);
                    die();
                }
            }

            Nano_Variable::set('controller', $load);
            require_once($load);
        }
        else {
            Nano_Variable::set('controller', 'errors/404.php');
            require_once('errors/404.php');
        }
    }
}







<
<
<
<
<
<
<
<
<
<
<
<
<











88
89
90
91
92
93
94













95
96
97
98
99
100
101
102
103
104
105
                                }
                            }

                            $ssl = true;
                        }
                    }
                }













            }

            Nano_Variable::set('controller', $load);
            require_once($load);
        }
        else {
            Nano_Variable::set('controller', 'errors/404.php');
            require_once('errors/404.php');
        }
    }
}