From b8413cefaffd82092e2cd7287d7df6e929136667 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Tue, 10 Nov 2015 17:34:23 +0100 Subject: [PATCH] Avoid having to deal with slashes in URLs --- system/src/Grav/Common/Utils.php | 1 + 1 file changed, 1 insertion(+) diff --git a/system/src/Grav/Common/Utils.php b/system/src/Grav/Common/Utils.php index ae4479903..427ec3ea1 100644 --- a/system/src/Grav/Common/Utils.php +++ b/system/src/Grav/Common/Utils.php @@ -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; }