|
@@ 89-93 (lines=5) @@
|
| 86 |
|
|
| 87 |
|
$timestamp = time() + $time_diff; |
| 88 |
|
|
| 89 |
|
if ( function_exists( 'wp_generate_password' ) ) { |
| 90 |
|
$nonce = wp_generate_password( 10, false ); |
| 91 |
|
} else { |
| 92 |
|
$nonce = substr( sha1( wp_rand( 0, 1000000 ) ), 0, 10 ); |
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
// Kind of annoying. Maybe refactor Jetpack_Signature to handle body-hashing. |
| 96 |
|
if ( is_null( $body ) ) { |
|
@@ 188-192 (lines=5) @@
|
| 185 |
|
|
| 186 |
|
$timestamp = time(); |
| 187 |
|
|
| 188 |
|
if ( function_exists( 'wp_generate_password' ) ) { |
| 189 |
|
$nonce = wp_generate_password( 10, false ); |
| 190 |
|
} else { |
| 191 |
|
$nonce = substr( sha1( wp_rand( 0, 1000000 ) ), 0, 10 ); |
| 192 |
|
} |
| 193 |
|
|
| 194 |
|
$normalized_request_string = join( |
| 195 |
|
"\n", |