Make WordPress Core


Ignore:
Timestamp:
09/28/2008 09:05:37 PM (18 years ago)
Author:
westi
Message:

Protect log out actions against CSRF. Props markjaquith and ionfish. Fixes #7790.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/classic/comments.php

    r8999 r9025  
    5050<?php if ( $user_ID ) : ?>
    5151
    52 <p><?php printf(__('Logged in as %s.'), '<a href="'.get_option('siteurl').'/wp-admin/profile.php">'.$user_identity.'</a>'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>"><?php _e('Log out &raquo;'); ?></a></p>
     52<p><?php printf(__('Logged in as %s.'), '<a href="'.get_option('siteurl').'/wp-admin/profile.php">'.$user_identity.'</a>'); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account') ?>"><?php _e('Log out &raquo;'); ?></a></p>
    5353
    5454<?php else : ?>
Note: See TracChangeset for help on using the changeset viewer.