Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#37623 closed defect (bug) (fixed)

Import screen: Success message contains escaped HTML

Reported by: pavelevap Owned by: ocean90
Priority: normal Milestone: 4.6
Component: Import Version: 4.6
Severity: normal Keywords: has-patch commit
Cc: Focuses: javascript, administration

Description

See attached screenshot.

Attachments (5)

Importer_message.png (7.4 KB ) - added by pavelevap 10 years ago.
37623.diff (810 bytes ) - added by swissspidy 10 years ago.
37623.2.diff (1.2 KB ) - added by swissspidy 10 years ago.
37623.3.diff (1.2 KB ) - added by swissspidy 10 years ago.
37623.4.diff (1.2 KB ) - added by ocean90 10 years ago.

Download all attachments as: .zip

Change History (17)

#1 @ocean90
10 years ago

  • Component GeneralImport
  • Focuses javascript administration added
  • Keywords needs-patch added
  • Milestone Awaiting Review4.6
  • Summary Strange message when installing importerImport screen: Success message contains escaped HTML

#2 @swissspidy
10 years ago

Introduced in [38206]

@swissspidy
10 years ago

#3 @swissspidy
10 years ago

  • Keywords has-patch added; needs-patch removed
  • Owner set to ocean90
  • Status newreviewing

#4 @janhenckens
10 years ago

Patch tested, looks good on my end.

@swissspidy
10 years ago

#5 @pavelevap
10 years ago

Anyway, is this message needed when there is inline update with aria notices?

@swissspidy
10 years ago

#6 @swissspidy
10 years ago

  • Keywords needs-testing added

New patch uploaded with different way of escaping.

@pavelevap Yes, because there aren't inline notices on every screen.

@ocean90
10 years ago

#7 @pavelevap
10 years ago

But screen with importers has inline notices and this message is special only for this screen (so it is redundant)? But probably I am missing something :-)

#8 @azaozz
10 years ago

  • Keywords commit added; needs-testing removed

37623.4.diff works as expected.

#9 @DrewAPicture
10 years ago

37623.4.diff Works as expected here too.

https://cl.ly/370c3M003N3m/Screen%20Shot%202016-08-10%20at%2012.41.48%20PM.png

#10 @azaozz
10 years ago

  • Resolutionfixed
  • Status reviewingclosed

In 38240:

Update/Install error messages: do not escape from the template, escape the error message string before inserting it.

Props swissspidy, ocean90.
Fixes #37623 for trunk.

#11 @azaozz
10 years ago

  • Resolution fixed
  • Status closedreopened

Reopen for 4.6.

#12 @azaozz
10 years ago

  • Resolutionfixed
  • Status reopenedclosed

In 38241:

Update/Install error messages: do not escape from the template, escape the error message string before inserting it.

Props swissspidy, ocean90.
Fixes #37623 for 4.6.

Note: See TracTickets for help on using tickets.