Merge branch 'release/1.0.7'

This commit is contained in:
Andy Miller
2016-01-07 14:21:56 -07:00
2 changed files with 6 additions and 0 deletions

View File

@@ -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

View File

@@ -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;