get_file_data() regex issue
|Reported by:||scribu||Owned by:|
Description (last modified by scribu)
I always wondered how the plugin/theme header syntax could be so permissive.
It turns out the regex is too permissive.
If the description field is missing, for example, it will match any line at the beginning of a file that contains 'description:' in it, such as:
Change History (25)
comment:12 nacin — 3 years ago
- Priority changed from normal to lowest
- Resolution fixed deleted
- Severity changed from minor to trivial
- Status changed from closed to reopened