Summary: | shared-mime-info detects a PHP file as HTML | ||
---|---|---|---|
Product: | shared-mime-info | Reporter: | Brett Alton <brett.jr.alton> |
Component: | general | Assignee: | Jonathan Blandford <jrb> |
Status: | RESOLVED NOTOURBUG | QA Contact: | |
Severity: | critical | ||
Priority: | high | ||
Version: | unspecified | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Brett Alton
2008-06-04 11:41:17 UTC
gedit should probably use the mime-type from the globs first, rather than rely solely on the data. As for detecting the file as HTML rather than PHP, the problem is that we only look in the first 64 characters for "<?php". And your test case is correctly detected as a PHP file... Bring up this problem with the gedit developers, they should act on the extension first, before checking the data. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.