Cleanup does not work properly and bloats file system
-
Tmp folder files not deleted correctly when generated like this:
$captcha_instance = new ReallySimpleCaptcha(); $captcha_word = $captcha_instance->generate_random_word(); $captcha_prefix = bin2hex(openssl_random_pseudo_bytes(8)); $captcha_img = $captcha_instance->generate_image($captcha_prefix, $captcha_word);
Fix for version 2.2, line 265:
- if ( ! preg_match( '/^[0-9]+\.(php|txt|png|gif|jpeg)$/', $filename ) ) { + if ( ! preg_match( '/^[0-9A-Za-z]+\.(php|txt|png|gif|jpeg)$/', $filename ) ) {
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Cleanup does not work properly and bloats file system’ is closed to new replies.