[2/5] pkgflag.php: Remove stray variable

Message ID 20170227184955.25495-2-lfleischer@archlinux.org
State Accepted, archived
Headers show
Series
  • [1/5] 404.php: Squelch warning on empty PATH_INFO
Related show

Commit Message

Lukas Fleischer Feb. 27, 2017, 6:49 p.m. UTC
Drop the fragment part of the redirection code which is an artifact of
the original code copy-pasted in commit ca954fe (Do not redirect when
showing errors during flagging, 2015-10-21).

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
---
 web/html/pkgflag.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/web/html/pkgflag.php b/web/html/pkgflag.php
index 44849d8..25c8ccb 100644
--- a/web/html/pkgflag.php
+++ b/web/html/pkgflag.php
@@ -28,7 +28,7 @@  if (check_token()) {
 	}
 
 	if ($ret) {
-		header('Location: ' . get_pkgbase_uri($pkgbase_name) . $fragment);
+		header('Location: ' . get_pkgbase_uri($pkgbase_name));
 		exit();
 	}
 }