Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#19219 closed defect (bug) (invalid)

Wordpress Importer - Spaces in attachment_url causes "Empty Filename" error

Reported by: misternifty Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.2.1
Component: Import Keywords: reporter-feedback close
Focuses: Cc:


The fetch_remote_file() function uses the following line

$url = sprintf($url);

Since the space character %20 uses the percentage sign, the function malforms the $url output.

Change History (5)

#1 @duck_
6 years ago

  • Keywords reporter-feedback added

Could you give a line number? I can only see two uses of sprinf() and neither involve $url.

#2 @misternifty
6 years ago

This actually resides in the wordpress-importer.php plugin on line 770. I'm not sure if this was the right place to post this.

#3 @duck_
6 years ago

Yes this is the correct place to report it. Line 770 isn't in fetch_remote_file(). I think you must be using a modified, old or somehow different version of the plugin. The latest stable release (at time of writing) can be seen here.

#4 @misternifty
6 years ago

  • Keywords close added

Looks like this has been taken care of. I thought I was up to the latest version on my local. Thanks for your help.

#5 @duck_
6 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.