#1502 closed defect (bug) (fixed)
Themes and Plugins pages don't check to see if file is readable
| Reported by: | masquerade | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | 1.6 |
| Severity: | normal | Keywords: | bg|has-patch|needs review |
| Cc: | Focuses: |
Description
Neither the themes or plugin information grabbing code use is_readable() before trying to open a file. This occurs in multiple places in admin-functions.php and can cause errors for files that are not readable by the webserver. I'll submit a patch tomorrow, unless someone beats me to it.
Note: This is not a dupe of #1370 , it points out problems beyond what's listed there.
Attachments (1)
Change History (5)
#2
@
21 years ago
- Keywords bg|has-patch|needs review added; bg|needs-patch removed
I've attached a patch file to resolve this issue. It adds in the is_readable check for both theme files and plugin files.
The theme file check adds a message to the broken_themes array.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch file to resolve this issue