[wp-trac] [WordPress Trac] #32121: Failing to create temp

WordPress Trac noreply at wordpress.org
Fri Apr 24 16:42:07 UTC 2015


#32121: Failing to create temp
----------------------------+-----------------------------
 Reporter:  mfcorral        |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Filesystem API  |    Version:  4.2
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32121>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list