Plugin Directory

Changeset 1671299


Ignore:
Timestamp:
06/05/2017 09:03:18 PM (9 years ago)
Author:
briancolinger
Message:

Check that the return value from openssl_verify() is 1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vaultpress/trunk/vaultpress.php

    r1652858 r1671299  
    18481848                unset( $post['sslsig'] );
    18491849            }
    1850             if ( openssl_verify( serialize( array( 'uri' => $uri, 'post' => $post ) ), base64_decode( $sslsig ), $this->get_option( 'public_key' ) ) ) {
     1850            if ( 1 === openssl_verify( serialize( array( 'uri' => $uri, 'post' => $post ) ), base64_decode( $sslsig ), $this->get_option( 'public_key' ) ) ) {
    18511851                return true;
    18521852            } else {
Note: See TracChangeset for help on using the changeset viewer.