Commit 0404f0e4 authored by JosephK's avatar JosephK
Browse files

tempfix login redirect

parent dd316b1c
......@@ -190,4 +190,9 @@ if (!is_writable(PATH_ACCOUNTS)) {
}
}
// Tempfix redirect on shaarli's home when user logged in
if(isset($_SERVER['HTTP_REFERER']) && strstr($_SERVER['HTTP_REFERER'], '?do=login')) {
header('Location: '.str_replace('?do=login', '', $_SERVER['HTTP_REFERER']));
}
include 'layout.php';
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