From cf75d79917233824fe41d9f1bc33fc0f67dc35e1 Mon Sep 17 00:00:00 2001 From: Pixel Date: Wed, 16 Nov 2011 08:36:16 -0800 Subject: Even if an URI doesn't have variables embedded, it still may contained escaped characters. --- src/HttpServer.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/HttpServer.cc') 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://") { -- cgit v1.2.3