WordPress.org

Make WordPress Core

Changeset 22539


Ignore:
Timestamp:
11/10/2012 09:38:14 PM (7 years ago)
Author:
koopersmith
Message:

Media templates: Alter escaping regular expression to prevent it from aggresively consuming input meant for interpolation. see #22344, #21390.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/media-models.js

    r22523 r22539  
    8181                    evaluate:    /<#([\s\S]+?)#>/g,
    8282                    interpolate: /\{\{\{([\s\S]+?)\}\}\}/g,
    83                     escape:      /\{\{([\s\S]+?)\}\}/g
     83                    escape:      /\{\{([^\}]+?)\}\}(?!\})/g
    8484                };
    8585
Note: See TracChangeset for help on using the changeset viewer.