Changeset 385611
- Timestamp:
- 05/16/2011 10:32:36 PM (15 years ago)
- Location:
- wp-htaccess-control/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (2 diffs)
-
wp-htaccess-control-ui.php (modified) (2 diffs)
-
wp-htaccess-control.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-htaccess-control/trunk/readme.txt
r381005 r385611 7 7 Requires at least: 2.7 8 8 Tested up to: 3.1.2 9 Stable tag: 2. 49 Stable tag: 2.5 10 10 11 11 Interface to customize the permalinks (author, category, archives and pagination) and htaccess file generated by Wordpress. … … 73 73 == Changelog == 74 74 75 = 2.5 (16/05/2011) = 76 * *Fix:* fixed a security vulnerability (lack of _nonce on settings page) (thank you Julio from Boiteaweb.fr for ringing the alarm bell; thank you Otto for the kind support!). 77 75 78 = 2.4 (04/05/2011) = 76 * *Feature:* added htaccess suggestion "Protect comments.php" ;79 * *Feature:* added htaccess suggestion "Protect comments.php" (thank you specimen.tk); 77 80 * Added "Latest donations"; 78 81 * Confirmed compatibility with WP 3.1.2. -
wp-htaccess-control/trunk/wp-htaccess-control-ui.php
r381004 r385611 4 4 $q=explode('&',$_SERVER['QUERY_STRING']); 5 5 $purl='http'.((!empty($_SERVER['HTTPS'])) ? 's' : '').'://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?'.$q[0]; 6 global $WPhtc ;6 global $WPhtc, $echo; 7 7 $WPhtc->wphtc_page_action(); 8 global $echo;9 8 $WPhtc_data=get_option('WPhtc_data'); 9 //$nonce= wp_create_nonce('WPhtc_settings'); 10 10 ?> 11 11 <div id="wphtc-page" class="wrap"> … … 415 415 </tr> 416 416 </table> 417 </div> 417 </div> 418 <?php wp_nonce_field('WPhtc_settings'); ?> 418 419 <input type="hidden" name="action" value="update" /> 419 420 <div class="wphtc-menu"> 420 <a class="button-secondary" href="<?php echo $purl?>&action=reset_rules"><?php _e('Reset all rules', 'wp-htaccess-control'); ?></a>421 <a class="button-secondary" href="<?php echo wp_nonce_url($purl."&action=reset_rules", 'WPhtc_reset_settings'); ?>"><?php _e('Reset all rules', 'wp-htaccess-control'); ?></a> 421 422 <input type="submit" class="button-primary" value="<?php _e('Save all changes', 'wp-htaccess-control'); ?>" /> 422 423 </div> -
wp-htaccess-control/trunk/wp-htaccess-control.php
r381004 r385611 4 4 Plugin URI: http://dardna.com/wp-htaccess-control 5 5 Description: Interface to customize the permalinks (author, category, archives and pagination) and htaccess file generated by Wordpress. 6 Version: 2. 46 Version: 2.5 7 7 Author: António Andrade 8 8 Author URI: http://dardna.com … … 433 433 # if reseting everything just delete the option array 434 434 case 'reset_rules': 435 # nonce 436 if(!check_admin_referer( 'WPhtc_reset_settings')){ 437 die("You have no permission to do this."); 438 } 435 439 delete_option('WPhtc_data'); 436 440 $echo.=__('All rules reset.', 'wp-htaccess-control'); … … 442 446 if(!$WPhtc_data['donation_hidden_time']){ 443 447 $WPhtc_data['donation_hidden_time']=time(); 448 } 449 # nonce 450 if(!check_admin_referer( 'WPhtc_settings')){ 451 die("You have no permission to do this."); 444 452 } 445 453 # get Custom Htaccess
Note: See TracChangeset
for help on using the changeset viewer.