From 530db231a2e2ef94d2dcd8cf0079fdff03083c0c Mon Sep 17 00:00:00 2001 From: Stefan Esser Date: Sun, 20 May 2012 16:22:05 +0200 Subject: Fix include whitelist and blacklist to support shemes with dots in their names --- execute.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'execute.c') diff --git a/execute.c b/execute.c index c1b2d36..f0038fb 100644 --- a/execute.c +++ b/execute.c @@ -152,7 +152,7 @@ SDEBUG("xxx %08x %08x",SUHOSIN_G(include_whitelist),SUHOSIN_G(include_blacklist) t = h = (h == NULL) ? h2 : ( (h2 == NULL) ? h : ( (h < h2) ? h : h2 ) ); if (h == NULL) break; - while (t > s && (isalnum(t[-1]) || t[-1]=='_')) { + while (t > s && (isalnum(t[-1]) || t[-1]=='_') || t[-1]=='.')) { t--; } @@ -195,7 +195,7 @@ SDEBUG("xxx %08x %08x",SUHOSIN_G(include_whitelist),SUHOSIN_G(include_blacklist) t = h = (h == NULL) ? h2 : ( (h2 == NULL) ? h : ( (h < h2) ? h : h2 ) ); if (h == NULL) break; - while (t > s && (isalnum(t[-1]) || t[-1]=='_')) { + while (t > s && (isalnum(t[-1]) || t[-1]=='_') || t[-1]=='.')) { t--; } -- cgit v1.3