Make WordPress Core


Ignore:
Timestamp:
08/25/2007 05:07:10 PM (17 years ago)
Author:
ryan
Message:

Add nonces to tag importers. Props xknown. fixes #4811

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/utw.php

    r5700 r5941  
    3232            $step = (int) $_GET['step'];
    3333        }
     34       
     35        if ( $step > 1 )
     36            check_admin_referer('import-utw');
    3437
    3538        // load the header
     
    103106
    104107        echo '<form action="admin.php?import=utw&amp;step=2" method="post">';
     108        wp_nonce_field('import-utw');
    105109        echo '<p class="submit"><input type="submit" name="submit" value="'.__('Step 2 &raquo;').'" /></p>';
    106110        echo '</form>';
     
    138142
    139143        echo '<form action="admin.php?import=utw&amp;step=3" method="post">';
     144        wp_nonce_field('import-utw');
    140145        echo '<p class="submit"><input type="submit" name="submit" value="'.__('Step 3 &raquo;').'" /></p>';
    141146        echo '</form>';
     
    156161
    157162        echo '<form action="admin.php?import=utw&amp;step=4" method="post">';
     163        wp_nonce_field('import-utw');
    158164        echo '<p class="submit"><input type="submit" name="submit" value="'.__('Step 4 &raquo;').'" /></p>';
    159165        echo '</form>';
Note: See TracChangeset for help on using the changeset viewer.