summaryrefslogtreecommitdiff
path: root/ifilter.c
diff options
context:
space:
mode:
Diffstat (limited to 'ifilter.c')
-rw-r--r--ifilter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ifilter.c b/ifilter.c
index efd2a6b..19f1457 100644
--- a/ifilter.c
+++ b/ifilter.c
@@ -146,7 +146,7 @@ static void suhosin_server_strip(HashTable *arr, char *key, int klen)
146 if (zend_hash_find(arr, key, klen, (void **) &tzval) == SUCCESS && 146 if (zend_hash_find(arr, key, klen, (void **) &tzval) == SUCCESS &&
147 Z_TYPE_PP(tzval) == IS_STRING) { 147 Z_TYPE_PP(tzval) == IS_STRING) {
148 148
149 s = t = Z_STRVAL_PP(tzval); 149 s = t = (unsigned char *)Z_STRVAL_PP(tzval);
150 for (; *t; t++) { 150 for (; *t; t++) {
151 if (suhosin_is_dangerous_char[*t]) { 151 if (suhosin_is_dangerous_char[*t]) {
152 *t = '?'; 152 *t = '?';
@@ -168,7 +168,7 @@ static void suhosin_server_encode(HashTable *arr, char *key, int klen)
168 if (zend_hash_find(arr, key, klen, (void **) &tzval) == SUCCESS && 168 if (zend_hash_find(arr, key, klen, (void **) &tzval) == SUCCESS &&
169 Z_TYPE_PP(tzval) == IS_STRING) { 169 Z_TYPE_PP(tzval) == IS_STRING) {
170 170
171 temp = Z_STRVAL_PP(tzval); 171 temp = (unsigned char *)Z_STRVAL_PP(tzval);
172 172
173 t = temp; 173 t = temp;
174 for (t = temp; *t; t++) { 174 for (t = temp; *t; t++) {
@@ -195,7 +195,7 @@ static void suhosin_server_encode(HashTable *arr, char *key, int klen)
195 } 195 }
196 *n = 0; 196 *n = 0;
197 197
198 Z_STRVAL_PP(tzval) = newv; 198 Z_STRVAL_PP(tzval) = (char *)newv;
199 Z_STRLEN_PP(tzval) = n-newv; 199 Z_STRLEN_PP(tzval) = n-newv;
200 } 200 }
201} 201}