Opened 11 years ago
Closed 11 years ago
#32121 closed defect (bug) (duplicate)
Failing to create temp
| Reported by: | mfcorral | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Filesystem API | Version: | 4.2 |
| Severity: | major | Keywords: | |
| Cc: | Focuses: | administration |
Description
The function wp_tempnam fails when the argument $filename constains a long query string.
There is a simply workaround by adding the following two lines to file.php after the line number 154:
153 // Use the basename of the given file without the extension as the name for the temporary directory 154 $temp_filename = basename( $filename ); 155 $temp_filename = parse_url($temp_filename); 156 $temp_filename = $temp_filename["path"];
Regards,
Miguel.
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
The problem is when a plug-in/theme has a large query string in the download URL (like enfold theme has), you can't update the plug-in/theme.