Make WordPress Core

Ticket #22135: 22135.patch

File 22135.patch, 487 bytes (added by TobiasBg, 12 years ago)

Use json_encode instead of addslashes

  • src/wp-admin/includes/media.php

     
    224224<script type="text/javascript">
    225225/* <![CDATA[ */
    226226var win = window.dialogArguments || opener || parent || top;
    227 win.send_to_editor('<?php echo addslashes($html); ?>');
     227win.send_to_editor(<?php echo json_encode( $html ); ?>);
    228228/* ]]> */
    229229</script>
    230230<?php