Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
<FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)(~|\.sw[op]|\.bak|\.orig|\.save)?$|^(\..*|Entries.*|Repository|Root|Tag|Template)$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig\.save)$">
test
=> should be removed, we no longer have .test filesinfo
=> should beyml
insteadtpl.php
=>twig
should be added too
Comment | File | Size | Author |
---|---|---|---|
#10 | 2253109.10.patch | 1.49 KB | alexpott |
#1 | drupal-2253109.patch | 1.48 KB | ParisLiakos |
Comments
Comment #1
ParisLiakos CreditAttribution: ParisLiakos commentedmiss click
Comment #2
Crell CreditAttribution: Crell commented1: drupal-2253109.patch queued for re-testing.
Comment #3
Crell CreditAttribution: Crell commentedSeems reasonable to me.
Comment #4
dman CreditAttribution: dman commented+1 sane. Good catch.
Comment #5
webchickJust out of curiosity, why are we keeping tpl.php but not info? It seems like we should either keep both or remove both, no?
Comment #6
dman CreditAttribution: dman commentedHm.
Technically, todays d8 still has two tpl.php files in. Probably outdated and scheduled for removal by the looks.
... not a reason, just an observation.
Comment #7
ParisLiakos CreditAttribution: ParisLiakos commentedyes and we still have
phptemplate
undercore/themes/engines
.so in theory .tpl.php is still supported even if not used by core
Comment #8
webchickGot it, thanks. We should probably have a follow-up (if we don't already) to discuss if we want that to be the case in 8.0.
Committed and pushed to 8.x.
Comment #10
alexpottThe yml exclusion is interesting - it has been discussed in another issue #1956698: Prevent access to YAML files using .htaccess and web.config to quote @Dave Reid
Patch changes exclusion to be
.info.yml
which prevents the module version discovery.Comment #11
ParisLiakos CreditAttribution: ParisLiakos commentedgood point! .info.yml switch is ok.
we can see what to do for other yaml files on this other issue
Comment #12
Dries CreditAttribution: Dries commentedCommitted 8.x. Thanks!