WordPress.org

Plugin Directory

Changeset 491679


Ignore:
Timestamp:
01/18/12 14:11:08 (2 years ago)
Author:
georgestephanis
Message:

Adding nonce for security purposes

Location:
go-dark/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • go-dark/trunk/go-dark.php

    r491305 r491679  
    66Author:      George Stephanis 
    77Author URI:  http://www.Stephanis.info/ 
    8 Version:     1.0.6 
     8Version:     1.0.7 
    99*/ 
    1010 
     
    3737            <?php endif; ?> 
    3838            <form method="post"> 
     39                <?php wp_nonce_field(__CLASS__.'_action',__CLASS__.'_nonce'); ?> 
    3940                <table class="form-table"> 
    4041                    <tr> 
     
    108109    } 
    109110    function catch_post(){ 
     111        if( !wp_verify_nonce($_REQUEST[__CLASS__.'_nonce'],__CLASS__.'_action') ){ 
     112            return; 
     113        } 
     114     
    110115        if( isset( $_POST[__CLASS__.'_start'] ) ){ 
    111116            update_option(__CLASS__.'_start',strtotime($_POST[__CLASS__.'_start'])); 
  • go-dark/trunk/readme.txt

    r491305 r491679  
    55Requires at least: 2.7 
    66Tested up to: 3.3.1 
    7 Stable tag: 1.0.6 
     7Stable tag: 1.0.7 
    88 
    99This SEO-Friendly plugin enables websites to 'go dark' on January 18th with a customizable message and start/end times to protest SOPA/PIPA and Internet Censorship 
     
    3939== Changelog == 
    4040 
     41= 1.0.7 = 
     42* Adding nonce for further security. 
     43 
    4144= 1.0.6 = 
    4245* Added vimeo video to default message, and link to admin panel sidebar for convenience. 
Note: See TracChangeset for help on using the changeset viewer.