mirror of
https://github.com/getgrav/grav.git
synced 2026-06-01 23:14:10 +02:00
Avoid having to deal with slashes in URLs
This commit is contained in:
@@ -457,6 +457,7 @@ abstract class Utils
|
||||
public static function getNonce($action, $plusOneTick = false)
|
||||
{
|
||||
$nonce = self::hash(self::generateNonceString($action, $plusOneTick));
|
||||
$nonce = str_replace('/', '-', $nonce); // avoid having to deal with slashes in URLs
|
||||
return $nonce;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user