From 4085730874e1d88bb5b675633a171ae20989e45a Mon Sep 17 00:00:00 2001 From: Ben Fuhrmannek Date: Tue, 27 Jan 2015 18:34:37 +0100 Subject: https for suhosin.filter.action + unittests --- execute.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'execute.c') 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 if (*action) { - if (strncmp("http://", action, sizeof("http://")-1)==0) { + if (strncasecmp("http://", action, sizeof("http://")-1)==0 + || strncasecmp("https://", action, sizeof("https://")-1)==0) { sapi_header_line ctr = {0}; if (code == -1) { -- cgit v1.3