From b76a47231c298be386b5ec37b5c72cb520ad0c0c Mon Sep 17 00:00:00 2001 From: "roberto@quantal64" Date: Tue, 17 Jul 2012 10:06:38 +0200 Subject: [PATCH] fixed per-request chdir management --- plugins/python/wsgi_handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/python/wsgi_handlers.c b/plugins/python/wsgi_handlers.c index 9ed6fd84..bfa374e8 100644 --- a/plugins/python/wsgi_handlers.c +++ b/plugins/python/wsgi_handlers.c @@ -432,7 +432,7 @@ int uwsgi_request_wsgi(struct wsgi_request *wsgi_req) { up.swap_ts(wsgi_req, wi); - if (wi->chdir) { + if (wi->chdir[0] != 0) { #ifdef UWSGI_DEBUG uwsgi_debug("chdir to %s\n", wi->chdir); #endif