Reply to Mime type problem

Mime type problem new!
by RDK, 9 years ago
Hello!

We have identified a compatibility problem if class.upload.php v 0.32 is used with a PHP version compiled against PCRE 8.35, this version requires the hypen (-) to be escaped in the expression, otherwise the expression fails with

preg_match(): Compilation failed: invalid range in character class

Making Mime detection non functional

Replacing the expressions with

"/^([\.\-\w]+)\/([\.\-\w]+)(.*)$/i"

Fixes the problem in our case

Thanks for the great workReply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important