Re: New escaped output operator
| From: | Михаил Востриков | Date: | Fri, 01 Jul 2016 08:51:53 +0000 |
| Subject: | Re: New escaped output operator | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-94351@lists.php.net to get a copy of this message | ||
> I can easier add a new template to e.g. a Laravel
> project (own parser, own extension, living next to existing blade
templates)
Your project already has a template engine, and framework has common code
which works with such engines.
But how much time do you need to convert all existing templates to a new TE?
I mean the projects without template engine, which work and are developed
every day.
Their number is rather large - various CMSs, projects with custom core, Yii
and Zend don't have TE by default.
In a big project there are a lot of PHP templates with <?= htmlspecialchars
?> or <?= h() ?> or <?= (int)$some_id ?> everywhere.
If we miss this somewhere, we could got an XSS.
2016-07-01 12:53 GMT+05:00 Markus Fischer <markus@fischer.name>:
> On 01.07.16 05:34, Михаил Востриков wrote:
> > Because it is almost impossible to add template engine in a big project
> > with PHP templates. But new version of language usually can easily be
> used.
>
> I interpret "But new version of language usually can easily be used" as
> in a new PHP version being installed on a server touted as being
> "easier" than changing/replaced/adding a new template language component
> with a framework?
>
> I object to this. I can easier add a new template to e.g. a Laravel
> project (own parser, own extension, living next to existing blade
> templates) then switching to a new PHP version on production servers.
>
> - Markus
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>