[wp-trac] [WordPress Trac] #30377: wp_check_filetype is broken when checking urls with parameters

WordPress Trac noreply at wordpress.org
Mon Oct 26 09:07:15 UTC 2015


#30377: wp_check_filetype is broken when checking urls with parameters
-------------------------------------------------+-------------------------
 Reporter:  supercleanse                         |       Owner:
     Type:  enhancement                          |  johnbillion
 Priority:  normal                               |      Status:  reviewing
Component:  Media                                |   Milestone:  Future
 Severity:  normal                               |  Release
 Keywords:  needs-testing needs-unit-tests       |     Version:  4.0
  needs-refresh                                  |  Resolution:
                                                 |     Focuses:
-------------------------------------------------+-------------------------

Comment (by atomicjack):

 Replying to [comment:26 layotte]:
 > Replying to [comment:24 atomicjack]:
 > > We pull data from a product feed, with parameters in the URL. It works
 perfectly in 4.1.1, but breaks after any version past that, even with the
 latest -3 patch.
 > >
 > > It is related to this bug.
 >
 > Can you describe the setup and GET request, so I can rework the patch
 and test?

 Thanks for offering to help - currently we have a line like this:

 {{{#!php
 <?php
 $media_info = wp_check_filetype(basename($vebra_media_line['File_url']));
 }}}

 I understand it is the File_url that you will probably need? I'm waiting
 for an example of what gets passed into that to be sent to me, but if you
 can do anything with the above at all, that'd be helpful. :)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30377#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list