summaryrefslogtreecommitdiff
path: root/execute.c
diff options
context:
space:
mode:
authorBen Fuhrmannek2015-01-27 18:34:37 +0100
committerBen Fuhrmannek2015-01-27 18:34:37 +0100
commit4085730874e1d88bb5b675633a171ae20989e45a (patch)
treef4e3b7cd262a89abebf9e4fc006b3036b0c3e3d7 /execute.c
parent784331fc2217f9084a57be7cb0e153532453fefd (diff)
https for suhosin.filter.action + unittests
Diffstat (limited to 'execute.c')
-rw-r--r--execute.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/execute.c b/execute.c
index 7f646fe..bc7dc59 100644
--- a/execute.c
+++ b/execute.c
@@ -423,7 +423,8 @@ static void suhosin_execute_ex(zend_op_array *op_array, int zo, long dummy TSRML
423 423
424 if (*action) { 424 if (*action) {
425 425
426 if (strncmp("http://", action, sizeof("http://")-1)==0) { 426 if (strncasecmp("http://", action, sizeof("http://")-1)==0
427 || strncasecmp("https://", action, sizeof("https://")-1)==0) {
427 sapi_header_line ctr = {0}; 428 sapi_header_line ctr = {0};
428 429
429 if (code == -1) { 430 if (code == -1) {