mirror of
https://github.com/getgrav/grav.git
synced 2026-05-06 15:16:33 +02:00
Merge branch 'release/1.0.7'
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
* Fix for markdown attributes on external URLs
|
||||
* Fixed issue where `data:` page header was acting as `publish_date:`
|
||||
* Fix for special characters in URL parameters (e.g. /tag:c++) #541
|
||||
* Safety check for an array of nonces to only use the first one
|
||||
|
||||
# v1.0.6
|
||||
## 12/22/2015
|
||||
|
||||
@@ -560,6 +560,11 @@ abstract class Utils
|
||||
*/
|
||||
public static function verifyNonce($nonce, $action)
|
||||
{
|
||||
//Safety check for multiple nonces
|
||||
if (is_array($nonce)) {
|
||||
$nonce = array_shift($nonce);
|
||||
}
|
||||
|
||||
//Nonce generated 0-12 hours ago
|
||||
if ($nonce == self::getNonce($action)) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user