WordPress.org

Plugin Directory

Changeset 622237


Ignore:
Timestamp:
11/07/12 18:54:53 (18 months ago)
Author:
mdawaffe
Message:

Sharing: stripslashes() for new custom service input

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/modules/sharedaddy/sharing.php

    r622209 r622237  
    6666        if ( isset( $_POST['_wpnonce'] ) && isset( $_POST['sharing_name'] ) && isset( $_POST['sharing_url'] ) && isset( $_POST['sharing_icon'] ) && wp_verify_nonce( $_POST['_wpnonce'], 'sharing-new_service' ) ) { 
    6767            $sharer = new Sharing_Service(); 
    68             if ( $service = $sharer->new_service( $_POST['sharing_name'], $_POST['sharing_url'], $_POST['sharing_icon'] ) ) { 
     68            if ( $service = $sharer->new_service( stripslashes( $_POST['sharing_name'] ), stripslashes( $_POST['sharing_url'] ), stripslashes( $_POST['sharing_icon'] ) ) ) { 
    6969                $this->output_service( $service->get_id(), $service ); 
    7070                echo '<!--->'; 
Note: See TracChangeset for help on using the changeset viewer.