summaryrefslogtreecommitdiff
path: root/http/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'http/index.php')
-rw-r--r--http/index.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/http/index.php b/http/index.php
index e6474bd..ca9b6ba 100644
--- a/http/index.php
+++ b/http/index.php
@@ -7,6 +7,13 @@ if (!in_array($format, ['atom', 'rss'])) {
die('Invalid feed format.');
}
+$pathinfo = trim($_REQUEST['pathinfo'], '/');
+
+if (strlen($pathinfo)) {
+ header('Location: ' . $pathinfo, TRUE, 302);
+ die();
+}
+
$params = explode('/', $_REQUEST['query']);
if (count($params) < 2) {