diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-03-28 02:22:48 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-03-28 02:22:48 +1100 |
| commit | f7313d4a0e4003802a9cef729f48a8b0b199faf8 (patch) | |
| tree | cc3d6cfab0defeab249078c60ca7578b08731f48 /inc/functions.php | |
| parent | d919c49b2f8681d5a23dfd7880fe18fa71f61705 (diff) | |
Fixed a bug making logins fail on Firefox if $config["root"] is a URL
Diffstat (limited to 'inc/functions.php')
| -rw-r--r-- | inc/functions.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/functions.php b/inc/functions.php index a00d62d7..4ee5b4ae 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -39,6 +39,9 @@ '\?\/.+' . ')$/i'; + if(!isset($config['cookies']['path'])) + $config['cookies']['path'] = $config['root']; + if(!isset($config['dir']['static'])) $config['dir']['static'] = $config['root'] . 'static/'; |
