Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/packages/pkginfo.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-02-07 15:25:51 +0100
committerErich Eckner <git@eckner.net>2019-02-07 15:25:51 +0100
commit2feaeef55f34db304c8bc7253699579f736be5f2 (patch)
tree7223367182aa9c9250e7972262fcc9cb5f90f4c2 /packages/pkginfo.php
parentbffc28e4bf5cfeae4a84746b2794682acf17e187 (diff)
packages/pkginfo.php: include $uri_prefix in redirect, too
Diffstat (limited to 'packages/pkginfo.php')
-rw-r--r--packages/pkginfo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/pkginfo.php b/packages/pkginfo.php
index 022f699..f5583b2 100644
--- a/packages/pkginfo.php
+++ b/packages/pkginfo.php
@@ -17,7 +17,7 @@ if (!array_key_exists('repo_arch', $_GET)) {
}
if (($_GET['repo']=='i686') || ($_GET['repo']=='i486') || ($_GET['repo']=='any')) {
- header('Location: /' . $_GET['repo'] . '/' . $_GET['repo_arch'] . '/' . $_GET['pkgname'] . '/');
+ header('Location: ' . $uri_prefix . $_GET['repo'] . '/' . $_GET['repo_arch'] . '/' . $_GET['pkgname'] . '/');
error_log('needed redirect URL: ' . $_SERVER['REQUEST_URI'] . ', HTTP_USER_AGENT: ' . $_SERVER['HTTP_USER_AGENT'] . ', HTTP_REFERER: ' . $_SERVER['HTTP_REFERER']);
die();
}