Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Fix/latest versions security #56

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

etobi
Copy link
Member

@etobi etobi commented Jul 15, 2017

  • fix code style
  • merge latest master

replaces PR #47

if (strpos($versionString, '.latest') !== false) {
$versionSource = $allowUnstable ? 'TYPO3versions' : 'TYPO3versionsStable';
}
$latestVersions = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Core\Registry')->get('tx_caretaker', $versionSource);
$newVersionString = $latestVersions[$versionDigits[0] . '.' . $versionDigits[1]];
Copy link
Member

Choose a reason for hiding this comment

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

Should we cleanup this code as well? This might raise notices for undefined version keys.

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, would be nice to just make it cleaner. I'll take care of that!

@etobi etobi requested a review from IchHabRecht August 1, 2017 20:02
@TrueType

This comment has been minimized.

@etobi

This comment has been minimized.

@TehTux TehTux added the feature A new feature (also small additions). label Jul 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature A new feature (also small additions).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants