projects/packages/connection/src/class-client.php 1 location
|
@@ 108-112 (lines=5) @@
|
105 |
|
|
106 |
|
$timestamp = time() + $time_diff; |
107 |
|
|
108 |
|
if ( function_exists( 'wp_generate_password' ) ) { |
109 |
|
$nonce = wp_generate_password( 10, false ); |
110 |
|
} else { |
111 |
|
$nonce = substr( sha1( wp_rand( 0, 1000000 ) ), 0, 10 ); |
112 |
|
} |
113 |
|
|
114 |
|
// Kind of annoying. Maybe refactor Jetpack_Signature to handle body-hashing. |
115 |
|
if ( is_null( $body ) ) { |
projects/packages/connection/src/class-tokens.php 1 location
|
@@ 516-520 (lines=5) @@
|
513 |
|
|
514 |
|
$timestamp = time(); |
515 |
|
|
516 |
|
if ( function_exists( 'wp_generate_password' ) ) { |
517 |
|
$nonce = wp_generate_password( 10, false ); |
518 |
|
} else { |
519 |
|
$nonce = substr( sha1( wp_rand( 0, 1000000 ) ), 0, 10 ); |
520 |
|
} |
521 |
|
|
522 |
|
$normalized_request_string = join( |
523 |
|
"\n", |