diff --git a/system/pages/account/manage.php b/system/pages/account/manage.php index d0a3eb75c..e3003e25d 100644 --- a/system/pages/account/manage.php +++ b/system/pages/account/manage.php @@ -21,7 +21,7 @@ if(isset($_REQUEST['redirect'])) { $redirect = urldecode($_REQUEST['redirect']); - + // should never happen, unless hacker modify the URL if (!str_contains($redirect, BASE_URL)) { error('Fatal error: Cannot redirect outside the website.'); diff --git a/system/pages/forum/edit_post.php b/system/pages/forum/edit_post.php index f42b743f4..29ac1bec5 100644 --- a/system/pages/forum/edit_post.php +++ b/system/pages/forum/edit_post.php @@ -19,7 +19,7 @@ } if(!$logged) { - echo 'You are not logged in. Log in to post on the forum.

'; + echo 'You are not logged in. Log in to post on the forum.

'; return; } diff --git a/system/pages/forum/move_thread.php b/system/pages/forum/move_thread.php index 86305b4df..cdae005a0 100644 --- a/system/pages/forum/move_thread.php +++ b/system/pages/forum/move_thread.php @@ -19,7 +19,7 @@ } if(!$logged) { - echo 'You are not logged in. Log in to post on the forum.

'; + echo 'You are not logged in. Log in to post on the forum.

'; return; } diff --git a/system/pages/forum/new_post.php b/system/pages/forum/new_post.php index 659b40371..c47302b65 100644 --- a/system/pages/forum/new_post.php +++ b/system/pages/forum/new_post.php @@ -24,7 +24,7 @@ $extra_url = '?action=new_post&thread_id=' . $_GET['thread_id']; } - echo 'You are not logged in. Log in to post on the forum.

'; + echo 'You are not logged in. Log in to post on the forum.

'; return; } diff --git a/system/pages/forum/new_thread.php b/system/pages/forum/new_thread.php index 7b97f30e6..7a66ac278 100644 --- a/system/pages/forum/new_thread.php +++ b/system/pages/forum/new_thread.php @@ -24,7 +24,7 @@ $extra_url = '?action=new_thread§ion_id=' . $_GET['section_id']; } - echo 'You are not logged in. Log in to post on the forum.

'; + echo 'You are not logged in. Log in to post on the forum.

'; return; } diff --git a/system/pages/forum/remove_post.php b/system/pages/forum/remove_post.php index 3e234e6fe..690b3f759 100644 --- a/system/pages/forum/remove_post.php +++ b/system/pages/forum/remove_post.php @@ -19,7 +19,7 @@ } if(!$logged) { - echo 'You are not logged in. Log in to post on the forum.

'; + echo 'You are not logged in. Log in to post on the forum.

'; return; } diff --git a/system/pages/polls.php b/system/pages/polls.php index 215498914..37372f25d 100644 --- a/system/pages/polls.php +++ b/system/pages/polls.php @@ -51,7 +51,7 @@ function getColorByPercent($percent) if($logged) echo $link.'?id='.$poll['id']; else - echo getLink('account/manage') . '?redirect=' . BASE_URL . urlencode($link.'?id='.$poll['id']); + echo getLink('account/manage') . '?redirect=' . urlencode($link.'?id='.$poll['id']); echo '">'.$poll['question'] . ' @@ -80,7 +80,7 @@ function getColorByPercent($percent) if($logged) echo $link.'?id='.$poll['id']; else - echo getLink('account/manage') . '?redirect=' . BASE_URL . urlencode($link.'?id='.$poll['id']); + echo getLink('account/manage') . '?redirect=' . urlencode($link.'?id='.$poll['id']); echo '">'.$poll['question'] . '