summaryrefslogtreecommitdiff
path: root/suhosin7.c
diff options
context:
space:
mode:
Diffstat (limited to 'suhosin7.c')
-rw-r--r--suhosin7.c22
1 files changed, 9 insertions, 13 deletions
diff --git a/suhosin7.c b/suhosin7.c
index c3e3765..c4a89ef 100644
--- a/suhosin7.c
+++ b/suhosin7.c
@@ -162,7 +162,6 @@ list_destroy:
162 if (s) { 162 if (s) {
163 *e = '\0'; 163 *e = '\0';
164 zend_hash_str_add_empty_element(*ht, s, e-s); 164 zend_hash_str_add_empty_element(*ht, s, e-s);
165 // zend_hash_str_add(*ht, s, e-s, &dummy, sizeof(unsigned long), NULL);
166 s = NULL; 165 s = NULL;
167 } 166 }
168 break; 167 break;
@@ -175,7 +174,6 @@ list_destroy:
175 e++; 174 e++;
176 } 175 }
177 if (s) { 176 if (s) {
178 // zend_hash_str_add(*ht, s, e-s, &dummy, sizeof(unsigned long), NULL);
179 zend_hash_str_add_empty_element(*ht, s, e-s); 177 zend_hash_str_add_empty_element(*ht, s, e-s);
180 } 178 }
181 efree(val); 179 efree(val);
@@ -508,17 +506,15 @@ PHP_MINFO_FUNCTION(suhosin7)
508{ 506{
509 php_info_print_box_start(0); 507 php_info_print_box_start(0);
510 if (!sapi_module.phpinfo_as_text) { 508 if (!sapi_module.phpinfo_as_text) {
511 do { 509 zend_string *enc_logo;
512 zend_string *enc_logo; 510
513 511 PUTS("<a href=\"http://www.suhosin.org/\"><img border=\"0\" src=\"data:image/jpeg;base64,");
514 PUTS("<a href=\"http://www.suhosin.org/\"><img border=\"0\" src=\"data:image/jpeg;base64,"); 512 enc_logo = php_base64_encode(suhosin_logo, sizeof(suhosin_logo));
515 enc_logo = php_base64_encode(suhosin_logo, sizeof(suhosin_logo)); 513 if (ZSTR_LEN(enc_logo)) {
516 if (ZSTR_LEN(enc_logo)) { 514 PHPWRITE(ZSTR_VAL(enc_logo), ZSTR_LEN(enc_logo));
517 PHPWRITE(ZSTR_VAL(enc_logo), ZSTR_LEN(enc_logo)); 515 }
518 } 516 zend_string_free(enc_logo);
519 zend_string_free(enc_logo); 517 PUTS("\" alt=\"Suhosin logo\" /></a>\n");
520 PUTS("\" alt=\"Suhosin logo\" /></a>\n");
521 } while(0);
522 } 518 }
523 PUTS("This server is protected with the Suhosin Extension " SUHOSIN7_EXT_VERSION); 519 PUTS("This server is protected with the Suhosin Extension " SUHOSIN7_EXT_VERSION);
524 PUTS(!sapi_module.phpinfo_as_text?"<br /><br />":"\n\n"); 520 PUTS(!sapi_module.phpinfo_as_text?"<br /><br />":"\n\n");