summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-11-16 08:36:16 -0800
committerPixel <pixel@nobis-crew.org>2011-11-16 08:36:16 -0800
commitcf75d79917233824fe41d9f1bc33fc0f67dc35e1 (patch)
tree81f9a11c01d282fb300d9c01a2babc6d8025e461
parentb1428e3102b422e6ee68da3540b43409aae257e2 (diff)
Even if an URI doesn't have variables embedded, it still may contained escaped characters.
-rw-r--r--src/HttpServer.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/HttpServer.cc b/src/HttpServer.cc
index 543b468..608b8a8 100644
--- a/src/HttpServer.cc
+++ b/src/HttpServer.cc
@@ -303,6 +303,8 @@ bool Balau::HttpWorker::handleClient() {
uri = httpUnescape(uri.extract(0, variablesPos).to_charp());
readVariables(variables, variablesStr);
free(variablesStr);
+ } else {
+ uri = httpUnescape(uri.to_charp());
}
if (uri.extract(0, 7) == "http://") {