You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$nameRegex = Liquid::get('INCLUDE_ALLOW_EXT')
? new Regexp('/^[^.\/][a-zA-Z0-9_\.\/-]+$/')
: new Regexp('/^[^.\/][a-zA-Z0-9_\/-]+$/');
if (!$nameRegex->match($templatePath)) {
throw new ParseException("Illegal template name '$templatePath'");
}
The text was updated successfully, but these errors were encountered:
Given the template name
page.contact
, it will fail if the extensions are set to false.Maybe it should check if the value after the
.
is the value of the include suffix?Or what does it matter if it matches
page.contact.liquid
orpage.contact
?FileSystem/local.php
The text was updated successfully, but these errors were encountered: