Make WordPress Core


Ignore:
Timestamp:
03/18/2013 02:01:25 PM (12 years ago)
Author:
ryan
Message:

Escape form action urls with esc_url() rather than esc_attr().

Props SergeyBiryukov
fixes #23266

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/media-new.php

    r22880 r23739  
    6969    <h2><?php echo esc_html( $title ); ?></h2>
    7070
    71     <form enctype="multipart/form-data" method="post" action="<?php echo admin_url('media-new.php'); ?>" class="<?php echo $form_class; ?>" id="file-form">
     71    <form enctype="multipart/form-data" method="post" action="<?php echo admin_url('media-new.php'); ?>" class="<?php echo esc_attr( $form_class ); ?>" id="file-form">
    7272
    7373    <?php media_upload_form(); ?>
Note: See TracChangeset for help on using the changeset viewer.