Make WordPress Core

Opened 16 years ago

Closed 15 years ago

#16816 closed defect (bug) (duplicate)

Wrongly formatted error message in Tools > Import

Reported by: djpeanut Owned by: duck_
Priority: normal Milestone:
Component: Import Version: 3.1
Severity: trivial Keywords:
Cc: Focuses:

Description

Very small bug. When uploading an XML file in the Import dialog which is bigger than the maximum allowed filesize for uploads, the error message is incorrectly displayed:

"The uploaded file exceeds the <code>upload_max_filesize</code> directive in <code>php.ini</code>."

Obviously the HTML tags shouldn't render and the wrapped text should be formatted as code. But this isn't the case. (Win7/Chrome/WP3.1)

Change History (7)

#1 @djpeanut
16 years ago

I should have mentioned that this occurs when using the Wordpress XML import dialog.

#2 @solarissmoke
16 years ago

  • Keywords reporter-feedback added

When uploading a large file via wp-admin/admin.php?import=wordpress, I get a properly formatted error. Are you using a different upload method/importer?

#3 @djpeanut
16 years ago

I'm using the same method. I will go back and double check to see if it's a plugin conflict. Apologies if I overlooked something.

#4 @nacin
16 years ago

  • Component Administration → Import
  • Milestone Awaiting Review → WordPress.org
  • Owner set to duck_
  • Status new → reviewing

#5 @duck_
16 years ago

WP_Import::handle_upload():

echo esc_html( $file['error'] )

Would have to double check that any error message is always generated internally by WordPress before removing the escaping.

#6 follow-up: @westi
15 years ago

See also #17674

#7 in reply to: ↑ 6 @duck_
15 years ago

  • Keywords reporter-feedback removed
  • Milestone WordPress.org
  • Resolution → duplicate
  • Status reviewing → closed

Replying to westi:

See also #17674

Note: See TracTickets for help on using tickets.