Ticket #2647 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

wptexturize function curlifies quotes in script blocks

Reported by: Justinsomnia Assigned to: anonymous
Priority: normal Milestone: 2.1
Component: General Version: 2.1
Severity: normal Keywords: bg|has-patch bg|commit bg|tested
Cc:

Description

Due to a misplaced parenthesis in the wptexturize function, quotes in a script block within a post will get texturized, breaking the script.

The following test post:

<script>document.write("test");</script>

erroneously gets sent to the web broswer as:

<script>document.write(&#8221;test&#8221;);</script>

Attachments

functions-formatting.php.diff (0.6 kB) - added by Justinsomnia on 04/06/06 18:47:03.
patch fixing the parenthesis error

Change History

04/06/06 18:47:03 changed by Justinsomnia

  • attachment functions-formatting.php.diff added.

patch fixing the parenthesis error

04/06/06 20:34:10 changed by westi

  • keywords set to bg|has-patch bg|commit bg|tested.
  • milestone set to 2.1.

Attached patch works well.

Good Catch!

12/01/06 02:53:23 changed by matt

  • status changed from new to closed.
  • resolution set to fixed.

(In [4565]) Don't texturize things inside of script or style tags, fixes #2647