Make WordPress Core

Opened 10 years ago

Closed 8 years ago

#28339 closed defect (bug) (invalid)

Escaped character (\) gets clobbered by Restore This Revision button

Reported by: strix-technica's profile Strix technica Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.9.1
Component: Revisions Keywords:
Focuses: administration Cc:

Description

The escape character, \, gets clobbered by 'Restore This Revision'. This bug looks like a partial regression of #9199 though, on this occasion, posts containing backslashes can be saved all right — it's only on restore that the backslashes are stripped. No idea if the causes are similar.

\ is important for embedded scripts such as those generated by http://w2.syronex.com/jmr/safemailto/.

How to reproduce:
Create a Page with the content:

\'escaped quotes\'

save; modify and save; then restore/revert that earlier save. The result will be:

'escaped quotes'

This bug is present in 3.9.1, but not 3.8.2.

Change History (3)

#1 @adamsilverstein
10 years ago

Strix -

Thanks for the bug report!

I tried to reproduce this bug, but did not succeed. I tried editing a post in text and visual mode, pasting the string and typing it, single and double quotes, single and double back slashes. In all cases the restore action worked as expected. Here is a screencast of my tests.

Can you please try to reproduce your issue with all plugins disabled and with one of the default WordPress themes (2010-2014) active to investigate the possibility that a plugin or theme is interfering with the restore process? If that doesn't help, can you give any more details about your environment and what you have to do to reproduce the bug?

Thanks

#3 @chriscct7
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

No further reports in 2 years, and no steps to reproduce. Closing as invalid.

Note: See TracTickets for help on using tickets.