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 --- Changelog | 1 + execute.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index 7793afb..e0f4f54 100644 --- a/Changelog +++ b/Changelog @@ -1,6 +1,7 @@ 2012-02-12 - 0.9.34 - Added initial support for PHP 5.4.0 + - Fix include whitelist and blacklist to support shemes with dots in their names - Fix read after efree() that lets function_exists() malfunction - Fix build with clang compiler - Added a request variable drop statistic log message 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