diff options
| author | Stefan Esser | 2012-05-20 16:22:05 +0200 |
|---|---|---|
| committer | Stefan Esser | 2012-05-20 16:22:05 +0200 |
| commit | 530db231a2e2ef94d2dcd8cf0079fdff03083c0c (patch) | |
| tree | 64f6cf9a450b43b46694fec147d504a8f4003585 /execute.c | |
| parent | 413ebdc618ee098241a42ac1203feb6bdc74f145 (diff) | |
Fix include whitelist and blacklist to support shemes with dots in their names
Diffstat (limited to 'execute.c')
| -rw-r--r-- | execute.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -152,7 +152,7 @@ SDEBUG("xxx %08x %08x",SUHOSIN_G(include_whitelist),SUHOSIN_G(include_blacklist) | |||
| 152 | t = h = (h == NULL) ? h2 : ( (h2 == NULL) ? h : ( (h < h2) ? h : h2 ) ); | 152 | t = h = (h == NULL) ? h2 : ( (h2 == NULL) ? h : ( (h < h2) ? h : h2 ) ); |
| 153 | if (h == NULL) break; | 153 | if (h == NULL) break; |
| 154 | 154 | ||
| 155 | while (t > s && (isalnum(t[-1]) || t[-1]=='_')) { | 155 | while (t > s && (isalnum(t[-1]) || t[-1]=='_') || t[-1]=='.')) { |
| 156 | t--; | 156 | t--; |
| 157 | } | 157 | } |
| 158 | 158 | ||
| @@ -195,7 +195,7 @@ SDEBUG("xxx %08x %08x",SUHOSIN_G(include_whitelist),SUHOSIN_G(include_blacklist) | |||
| 195 | t = h = (h == NULL) ? h2 : ( (h2 == NULL) ? h : ( (h < h2) ? h : h2 ) ); | 195 | t = h = (h == NULL) ? h2 : ( (h2 == NULL) ? h : ( (h < h2) ? h : h2 ) ); |
| 196 | if (h == NULL) break; | 196 | if (h == NULL) break; |
| 197 | 197 | ||
| 198 | while (t > s && (isalnum(t[-1]) || t[-1]=='_')) { | 198 | while (t > s && (isalnum(t[-1]) || t[-1]=='_') || t[-1]=='.')) { |
| 199 | t--; | 199 | t--; |
| 200 | } | 200 | } |
| 201 | 201 | ||
