View Revisions: Issue #12975
Summary | 12975: Cannot use the twig split filter | ||
---|---|---|---|
Revision | 2017-11-28 21:07 by tpartner | ||
Description | @LouisGac, can we safely add this to the sandbox allowed functions? I tried adding "split" to the functions array in internal.php at line 265 but still got a "Twig_Sandbox_SecurityNotAllowedFilterError" when using something like below: <code>{% set foo = aGroup.name|split('-') %}</code> Reference - https://twig.symfony.com/doc/2.x/filters/split.html |
||
Revision | 2017-11-28 20:57 by tpartner | ||
Description | @LouisGac, can we safely add this to the sandbox allowed functions? I tried adding "split" to the functions array in internal.php at line 265 but still got a "Twig_Sandbox_SecurityNotAllowedFilterError" when using something like below: <code>{% set foo = aGroup.name|split('-') %}</code> |
||
Revision | 2017-11-28 20:56 by tpartner | ||
Description | @LouisGac, can we safely add this to the sandbox allowed functions? I tried adding "split" to the functions array in internal.php at line 265 but still got a "//Twig_Sandbox_SecurityNotAllowedFilterError//" when using something like below: <code>{% set foo = aGroup.name|split('-') %}</code> |
||
Revision | 2017-11-28 20:56 by tpartner | ||
Description | @LouisGac, can we safely add this to the sandbox allowed functions? I tried adding "split" to the functions array in internal.php at line 265 but still got a "[i]Twig_Sandbox_SecurityNotAllowedFilterError[/i]" when using something like below: <code>{% set foo = aGroup.name|split('-') %}</code> |
||
Revision | 2017-11-28 20:54 by tpartner | ||
Description | @LouisGac, can we safely add this to the sandbox allowed functions? I tried adding "split" to the functions array in internal.php at line 265 but still got a "Twig_Sandbox_SecurityNotAllowedFilterError" when using something like below: <code>{% set foo = aGroup.name|split('-') %}</code> |
||
Revision | 2017-11-28 20:53 by tpartner | ||
Description | @LouisGac, can we safely add this to the sandbox allowed functions? I tried adding "split" to the functions array in internal.php at line 265 but still got a "Twig_Sandbox_SecurityNotAllowedFilterError" when using something like below: <code php>{% set foo = aGroup.name|split('-') %}</code> |