Plugin Directory

Changeset 3302584


Ignore:
Timestamp:
05/29/2025 02:38:52 AM (8 months ago)
Author:
jarednova
Message:

Update to Twig 1.44.8

Location:
timber-library/trunk/vendor/twig/twig
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • timber-library/trunk/vendor/twig/twig/CHANGELOG

    r2823301 r3302584  
     1# 1.44.8 (2024-09-09)
     2
     3 * Fix a security issue when an included sandboxed template has been loaded before without the sandbox context
     4
    15# 1.44.7 (2022-09-28)
    26
  • timber-library/trunk/vendor/twig/twig/src/Environment.php

    r2823301 r3302584  
    4242class Environment
    4343{
    44     public const VERSION = '1.44.7';
    45     public const VERSION_ID = 14407;
     44    public const VERSION = '1.44.8';
     45    public const VERSION_ID = 14408;
    4646    public const MAJOR_VERSION = 1;
    4747    public const MINOR_VERSION = 44;
    48     public const RELEASE_VERSION = 7;
     48    public const RELEASE_VERSION = 8;
    4949    public const EXTRA_VERSION = '';
    5050
  • timber-library/trunk/vendor/twig/twig/src/Extension/CoreExtension.php

    r2823301 r3302584  
    15701570            $sandbox->enableSandbox();
    15711571        }
    1572 
    1573         foreach ((\is_array($template) ? $template : [$template]) as $name) {
    1574             // if a Template instance is passed, it might have been instantiated outside of a sandbox, check security
    1575             if ($name instanceof TemplateWrapper || $name instanceof Template) {
    1576                 $name->unwrap()->checkSecurity();
    1577             }
    1578         }
    15791572    }
    15801573
     
    16051598
    16061599    try {
     1600        if ($isSandboxed && $loaded) {
     1601            $loaded->unwrap()->checkSecurity();
     1602        }
     1603
    16071604        $ret = $loaded ? $loaded->render($variables) : '';
    16081605    } catch (\Exception $e) {
Note: See TracChangeset for help on using the changeset viewer.