Skip to content

remove extra Engine after class name#891

Merged
markstory merged 1 commit into4.xfrom
saeideng-patch-1
Mar 24, 2022
Merged

remove extra Engine after class name#891
markstory merged 1 commit into4.xfrom
saeideng-patch-1

Conversation

@saeideng
Copy link
Copy Markdown
Member

Close #890

@saeideng saeideng added this to the 4.x milestone Mar 24, 2022
Comment thread templates/Pages/home.php
<?php $settings = Cache::getConfig('_cake_core_'); ?>
<?php if (!empty($settings)) : ?>
<li class="bullet success">The <em><?= $settings['className'] ?>Engine</em> is being used for core caching. To change the config edit config/app.php</li>
<li class="bullet success">The <em><?= $settings['className'] ?></em> is being used for core caching. To change the config edit config/app.php</li>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

h() would also be good to add

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$settings['className'] comes from config file , not user input

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still good practice imo

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can add it separately. We should have it if only to model safe template authoring.

@markstory markstory merged commit db9547e into 4.x Mar 24, 2022
@markstory markstory deleted the saeideng-patch-1 branch March 24, 2022 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect cache engine name in home page

3 participants