summaryrefslogtreecommitdiff
path: root/cgit.c
diff options
context:
space:
mode:
authorStefan Bühler <source@stbuehler.de>2009-09-14 21:37:13 +0000
committerLars Hjemli <hjemli@gmail.com>2009-10-06 18:56:43 +0200
commit121898e73d6e28656c2d451effc6d9907ebdc5ba (patch)
treed83e9d57cfc5b20d55b10502b832d077ae3ee076 /cgit.c
parent9735835c0e9f2c4a0caf5a431fc455d5855472aa (diff)
downloadcgit-121898e73d6e28656c2d451effc6d9907ebdc5ba.tar.gz
cgit-121898e73d6e28656c2d451effc6d9907ebdc5ba.tar.bz2
cgit-121898e73d6e28656c2d451effc6d9907ebdc5ba.zip
Skip leading "/" in url querystring value
Makes it easier to rewrite :) lighttpd-sandbox: rewrite "/cgit.cgi?url=%{enc:request.path}&%{request.query}"; Signed-off-by: Stefan Bühler <source@stbuehler.de> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.c')
-rw-r--r--cgit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgit.c b/cgit.c
index bd37788..a17f40d 100644
--- a/cgit.c
+++ b/cgit.c
@@ -209,6 +209,8 @@ static void querystring_cb(const char *name, const char *value)
} else if (!strcmp(name, "p")) {
ctx.qry.page = xstrdup(value);
} else if (!strcmp(name, "url")) {
+ if (*value == '/')
+ value++;
ctx.qry.url = xstrdup(value);
cgit_parse_url(value);
} else if (!strcmp(name, "qt")) {
sten.git/commit/settings.py?id=df74fa986f24240640f46fcf4a526dec09247e5f&follow=1'>No need for flask-sqlalchemy to track modifications and send eventsRené 'Necoro' Neumann1-0/+1 2017-02-12FixRené 'Necoro' Neumann1-1/+1 2016-07-08Constant -> KonstantRené 'Necoro' Neumann1-1/+1 2016-07-052to3 fixed too muchRené 'Necoro' Neumann1-1/+1 2016-07-052to3 conversionRené 'Necoro' Neumann12-42/+42 2016-07-05First batch of py3 changesRené 'Necoro' Neumann7-8/+7 2016-05-01Removed base 'Expense' class; introduce CategoryModel insteadRené 'Necoro' Neumann1-6/+7 2016-05-01Ignore .pyoRené 'Necoro' Neumann1-0/+1