Updated more static urls.

This commit is contained in:
flash 2019-02-12 15:12:58 +01:00
parent c60faa9607
commit 181f56bfc7
3 changed files with 6 additions and 6 deletions

View file

@ -40,7 +40,7 @@ switch ($authMode) {
case 'logout': case 'logout':
if (!user_session_active()) { if (!user_session_active()) {
header('Location: /'); header(sprintf('Location: %s', url('index')));
return; return;
} }
@ -48,7 +48,7 @@ switch ($authMode) {
set_cookie_m('uid', '', -3600); set_cookie_m('uid', '', -3600);
set_cookie_m('sid', '', -3600); set_cookie_m('sid', '', -3600);
user_session_stop(true); user_session_stop(true);
header('Location: /'); header(sprintf('Location: %s', url('index')));
return; return;
} }
@ -130,7 +130,7 @@ switch ($authMode) {
case 'forgot': case 'forgot':
if (user_session_active() || !$canResetPassword) { if (user_session_active() || !$canResetPassword) {
header('Location: /'); header(sprintf('Location: %s', url('index')));
break; break;
} }

View file

@ -47,7 +47,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
} }
if ($currentSessionKilled) { if ($currentSessionKilled) {
header('Location: /'); header(sprintf('Location: %s', url('index')));
return; return;
} }
} }

View file

@ -69,8 +69,8 @@ function comments_parse_for_display(string $text): string
} }
return sprintf( return sprintf(
'<a href="/profile.php?u=%d" class="comment__mention", style="%s">@%s</a>', '<a href="%s" class="comment__mention", style="%s">@%s</a>',
$info['user_id'], url('user-profile', ['user' => $info['user_id']]),
html_colour($info['user_colour']), html_colour($info['user_colour']),
$info['username'] $info['username']
); );