66937[TASK] Introduce constant 'TYPO3'
Commit message
Review
-
Code review CR +2 Done
- Christian Kuhn +2
- Anja Leichsenring +1
- Benni Mack +1
-
Verified V +2 Done
- Christian Kuhn +2
- Anja Leichsenring +1
- Benni Mack +1
- TYPO3com +1 CI
Issues 2
Files 1
Review log 1011
-
Christian Kuhn uploaded patch set 1 11/28/20, 16:28
-
TYPO3com voted on patch set 1 V +1 11/28/20, 16:39 Completed build in 11m 18s on Sat, 28 Nov, 04:39 PM Test Summary: 32394 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-7671
-
Benni Mack commented on patch set 1 11/28/20, 16:53
* Should we add an Important rst? So people know it exists? -
Benni Mack voted on patch set 1 V +1 CR +1 11/28/20, 16:53
-
Christian Kuhn commented on patch set 1 11/28/20, 17:03
> Patch Set 1: > > * Should we add an Important rst? So people know it exists? We'll have .rst files in v11 when TYPO3_MODE is deprecated. I think it's fair enough to not bother devs in v10 with this: The v10 backport of this change is basically just meant for ext devs who are working on v11 versions of their extensions. Thus, I'd target the .rst files to v11 only and did not include them in this patch. -
Christoph Lehmann commented on patch set 1 11/28/20, 17:12
IMHO the statement 'defined('TYPO3_MODE') or die();' is just a workaround for the problem: Files are unnecessarily. This should be fixed and these statements should be removed completely. How to achieve this? i) Block request to files outside EXT:example/Resources/Public/ via .htaccess (TYPO3.CMS/typo3/sysext/install/Resources/Private/FolderStructureTemplateFiles/root-htaccess) This is currently partially given and could be improved. ii) Implement https://github.com/helhum/typo3-secure-web in core. We use it in every project. The project introduces a new document root "web" (or public) and symlinks all Resources/Public/ folders. Pretty simple and secure. Admitted, it would be breaking too, but things go in the correct direction. -
Christoph Lehmann commented on patch set 1 11/28/20, 17:18
*Files are unnecessarily exposed... -
Christian Kuhn commented on patch set 1 11/28/20, 17:22
Thx Christoph. You're right: Mid-term, we should get rid of ext_* files altogether. There are a couple of strategies to achieve that and the files are getting smaller from version to version already. This needs more effort and is a different thing than phasing out TYPO3_MODE, though. For the time being, we want to phase out TYPO3_MODE and need some substitution. The new constant shouldn't harm and does not collide with anything else. -
Anja Leichsenring voted on patch set 1 V +1 CR +1 11/28/20, 17:30
-
Christian Kuhn voted on patch set 1 V +2 CR +2 11/28/20, 17:34
-
Christian Kuhn merged patch set 2 11/28/20, 17:36