diff options
author | Pixel <pixel@nobis-crew.org> | 2011-11-16 08:36:16 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2011-11-16 08:36:16 -0800 |
commit | cf75d79917233824fe41d9f1bc33fc0f67dc35e1 (patch) | |
tree | 81f9a11c01d282fb300d9c01a2babc6d8025e461 /src | |
parent | b1428e3102b422e6ee68da3540b43409aae257e2 (diff) |
Even if an URI doesn't have variables embedded, it still may contained escaped characters.
Diffstat (limited to 'src')
-rw-r--r-- | src/HttpServer.cc | 2 |
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://") { |