Skip to content

Commit

Permalink
Merge branch 'release/1.7.42.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Jul 18, 2023
2 parents 4cd1378 + 0d27f2d commit 45103f8
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 64 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# v1.7.42.2
## 07/18/2023

2. [](#improved)
* In `Utils::isDangerousFunction`, handle double `\\` in `|map` twig filter to mitigate SSTI attack
* Better handle empty email in `Validatoin::typeEmail()`

# v1.7.42.1
## 06/15/2023

Expand Down
125 changes: 63 additions & 62 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion system/defines.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

// Some standard defines
define('GRAV', true);
define('GRAV_VERSION', '1.7.42.1');
define('GRAV_VERSION', '1.7.42.2');
define('GRAV_SCHEMA', '1.7.0_2020-11-20_1');
define('GRAV_TESTING', false);

Expand Down
4 changes: 4 additions & 0 deletions system/src/Grav/Common/Data/Validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,10 @@ public static function typeColor($value, array $params, array $field)
*/
public static function typeEmail($value, array $params, array $field)
{
if (empty($value)) {
return false;
}

if (!isset($params['max'])) {
$params['max'] = 320;
}
Expand Down
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -2069,7 +2069,7 @@ public static function isDangerousFunction($name): bool
}

if (strpos($name, "\\") !== false) {
return false;
return true;
}

if (in_array($name, $commandExecutionFunctions)) {
Expand Down

0 comments on commit 45103f8

Please sign in to comment.