Closed dynamitemedia closed 1 year ago
odd thing so i just called it like this
$result = WPSimpleNonce::checkNonce($name,$value); var_dump($result);
and i get this as a result bool(true)
bool(true)
but there is NO info for $name or $value but it is still coming back as true
im calling this on another page where the form was submitted aka: form_data.php
<?php $vidID="1tyr234446hfr"; $myNonce = WPSimpleNonce::createNonce('vid_' .$vidID); extract($myNonce); echo $name . "<br><br>"; echo $value . "<br><br>"; ?> <input type="hidden" name="<?php echo $name; ?>" value="<?php echo $value; ?>" />
then on the other page im using is as this:
``` $name = $_REQUEST['$name']; $value = $_REQUEST['$value']; $result = WPSimpleNonce::checkNonce($name,$value); var_dump($result); // we check that nonce is valid if (boolval( $result ) =='1'){ echo "this Nonce is Valid"; } else { echo "this Nonce is inValid"; } // closed boolean check
and yet it is coming back valid while testing WITHOUT pass any of the variables
Could not reproduce.
odd thing so i just called it like this
and i get this as a result
bool(true)
but there is NO info for $name or $value but it is still coming back as true
im calling this on another page where the form was submitted aka: form_data.php
then on the other page im using is as this: