Homestyx hydra
Diffusion hydra e8dd67b88c13

Properly escape inline <script>

Description

Properly escape inline <script>

Test Plan:
Loaded Phabricator page, checked the source code. Also:

$c_uri = '//connect.facebook.net/en_US/all.js#xfbml=1&appId=';
echo CelerityStaticResourceResponse::renderInlineScript(
  jsprintf(
    'console.log(%s); // </script>
    %s',
    $c_uri,
    "</script><b>x</b>"));

Reviewers: epriestley, btrahan

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D5741

Details

Provenance
Jakub VranaAuthored on Apr 20 2013, 8:55 PM
sirocylPushed on Oct 16 2024, 5:49 AM
Parents
R1:b216dc9c2c43: Document where Arcanist configuration can be set
Branches
Unknown
Tags
Unknown

Event Timeline