Comment on Partially incorrect MIME type detection for files newly uploaded to the cloud

<- View Parent
pepecyb@hub.hubzilla.hu@hub.hubzilla.hu ⁨6⁩ ⁨days⁩ ago
That’s right, unfortunately… it should be $filename instead of $os_relpath, so


if ($mimetype === “text/plain” && preg_match(“/.css$/i”, $filename))


Is that correct?

original
Sort:hotnewtop