Comment on Partially incorrect MIME type detection for files newly uploaded to the cloud
@Mario Vavti
I wouldn't like it either. But what are the chances that it will be fixed in libmagic within a reasonable timespan? Forget it; we need a usable workaround for the Hubzilla webpages ASAP.
But i actually do not like this hack!
I wouldn't like it either. But what are the chances that it will be fixed in libmagic within a reasonable timespan? Forget it; we need a usable workaround for the Hubzilla webpages ASAP.
My suggestion would be:
This is harmless, only affects CSS and should sort out the problem.
Sorry, but this won't work, as $os_rel_path is the hash, rather than the filename.
$filenameinstead of$os_relpath, soif ($mimetype === “text/plain” && preg_match(“/.css$/i”, $filename))Is that correct?