Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3443205
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3443205
Commits
4cf7a965
Unverified
Commit
4cf7a965
authored
6 years ago
by
Alex Pott
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2921682
by zaporylie: Array member variables initialized with NULL in TwigSandboxPolicy
parent
5972c776
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/lib/Drupal/Core/Template/TwigSandboxPolicy.php
+9
-3
9 additions, 3 deletions
core/lib/Drupal/Core/Template/TwigSandboxPolicy.php
with
9 additions
and
3 deletions
core/lib/Drupal/Core/Template/TwigSandboxPolicy.php
+
9
−
3
View file @
4cf7a965
...
...
@@ -17,19 +17,25 @@ class TwigSandboxPolicy implements \Twig_Sandbox_SecurityPolicyInterface {
/**
* An array of whitelisted methods in the form of methodName => TRUE.
*
* @var array
*/
protected
$whitelisted_methods
=
NULL
;
protected
$whitelisted_methods
;
/**
* An array of whitelisted method prefixes -- any method starting with one of
* these prefixes will be allowed.
*
* @var array
*/
protected
$whitelisted_prefixes
=
NULL
;
protected
$whitelisted_prefixes
;
/**
* An array of class names for which any method calls are allowed.
*
* @var array
*/
protected
$whitelisted_classes
=
NULL
;
protected
$whitelisted_classes
;
/**
* Constructs a new TwigSandboxPolicy object.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment