WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/17/2010 05:12:01 PM (9 years ago)
Author:
markjaquith
Message:

esc_textarea() and application for obvious textarea escaping. props alexkingorg. fixes #15454

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network.php

    r16094 r16431  
    369369    <textarea class="code" readonly="readonly" cols="100" rows="<?php echo $num_keys_salts; ?>"><?php
    370370    foreach ( $keys_salts as $c => $v ) {
    371         echo "\ndefine( '$c', '" . wp_htmledit_pre( $v ) . "' );";
     371        echo "\ndefine( '$c', '" . esc_textarea( $v ) . "' );";
    372372    }
    373373?></textarea>
     
    457457        <li><p><?php printf( __( 'Add the following to your <code>web.config</code> file in <code>%s</code>, replacing other WordPress rules:' ), ABSPATH ); ?></p>
    458458        <textarea class="code" readonly="readonly" cols="100" rows="20">
    459         <?php echo wp_htmledit_pre( $web_config_file ); ?>
     459        <?php echo esc_textarea( $web_config_file ); ?>
    460460        </textarea></li>
    461461        </ol>
     
    486486        <li><p><?php printf( __( 'Add the following to your <code>.htaccess</code> file in <code>%s</code>, replacing other WordPress rules:' ), ABSPATH ); ?></p>
    487487        <textarea class="code" readonly="readonly" cols="100" rows="<?php echo $subdomain_install ? 11 : 16; ?>">
    488 <?php echo wp_htmledit_pre( $htaccess_file ); ?></textarea></li>
     488<?php echo esc_textarea( $htaccess_file ); ?></textarea></li>
    489489        </ol>
    490490
Note: See TracChangeset for help on using the changeset viewer.