[aur-dev] [PATCH 2/5] pkgflag.php: Remove stray variable

Lukas Fleischer lfleischer at archlinux.org
Mon Feb 27 18:49:52 UTC 2017


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 at archlinux.org>
---
 web/html/pkgflag.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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();
 	}
 }
-- 
2.12.0


More information about the aur-dev mailing list