51462[TASK] Use strict comparison for strings
Commit message
Review
-
Code review CR +2
- Benni Mack +2
- Stefan Neufeind +1
- Markus Klein +1
-
Verified V +2
- Benni Mack +2
- Markus Klein +1
- TYPO3com +1 CI
Issues 1
Files 110
- typo3/sysext/backend/Classes/Backend/ToolbarItems/ShortcutToolbarItem.php+3 −3
- typo3/sysext/backend/Classes/Clipboard/Clipboard.php+19 −19
- typo3/sysext/backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php+1 −1
- typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php+1 −1
- typo3/sysext/backend/Classes/Controller/ContentElement/MoveElementController.php+4 −4
- typo3/sysext/backend/Classes/Controller/ContentElement/NewContentElementController.php2+1 −1
- typo3/sysext/backend/Classes/Controller/EditDocumentController.php4+6 −6
- typo3/sysext/backend/Classes/Controller/FormInlineAjaxController.php+1 −1
- typo3/sysext/backend/Classes/Form/Container/InlineRecordContainer.php1+1 −1
- typo3/sysext/backend/Classes/Form/Element/SelectCheckBoxElement.php+1 −1
- typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractItemProvider.php+1 −1
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaInline.php+1 −1
- typo3/sysext/backend/Classes/Form/Wizard/SuggestWizardDefaultReceiver.php+3 −3
- typo3/sysext/backend/Classes/History/RecordHistory.php+1 −1
- typo3/sysext/backend/Classes/Utility/BackendUtility.php+7 −7
- typo3/sysext/backend/Classes/View/PageLayoutView.php+3 −3
- typo3/sysext/beuser/Classes/Controller/BackendUserActionController.php+3 −3
- typo3/sysext/compatibility7/Classes/Controller/SearchFormController.php+8 −8
- typo3/sysext/compatibility7/Classes/Hooks/EnforceUrlSchemeHook.php+2 −2
- typo3/sysext/compatibility7/Classes/Hooks/PageLayoutActionHook.php+5 −5
Show 90 more files
- typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php+4 −4
- typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php+1 −1
- typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php+2 −2
- typo3/sysext/core/Classes/Configuration/FlexForm/FlexFormTools.php+1 −1
- typo3/sysext/core/Classes/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcher.php+1 −1
- typo3/sysext/core/Classes/Controller/CommandLineController.php+1 −1
- typo3/sysext/core/Classes/Database/QueryGenerator.php+3 −3
- typo3/sysext/core/Classes/Database/QueryView.php+18 −18
- typo3/sysext/core/Classes/Database/RelationHandler.php+4 −4
- typo3/sysext/core/Classes/DataHandling/DataHandler.php+69 −69
- typo3/sysext/core/Classes/FrontendEditing/FrontendEditingController.php+7 −7
- typo3/sysext/core/Classes/Html/HtmlParser.php+11 −11
- typo3/sysext/core/Classes/Html/RteHtmlParser.php+5 −5
- typo3/sysext/core/Classes/Http/ServerRequestFactory.php+1 −1
- typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php+4 −4
- typo3/sysext/core/Classes/Integrity/DatabaseIntegrityCheck.php+14 −14
- typo3/sysext/core/Classes/Mail/Rfc822AddressesParser.php+3 −3
- typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php+1 −1
- typo3/sysext/core/Classes/Resource/ResourceFactory.php+1 −1
- typo3/sysext/core/Classes/TimeTracker/TimeTracker.php1+1 −1
- typo3/sysext/core/Classes/TypoScript/ExtendedTemplateService.php+9 −9
- typo3/sysext/core/Classes/TypoScript/TemplateService.php+4 −4
- typo3/sysext/core/Classes/Utility/ClientUtility.php+1 −1
- typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php+1 −1
- typo3/sysext/core/Classes/Utility/GeneralUtility.php+21 −21
- typo3/sysext/core/Classes/Utility/MathUtility.php+7 −7
- typo3/sysext/core/Tests/Unit/Resource/Driver/Fixtures/LocalDriverFilenameFilter.php+1 −1
- typo3/sysext/core/Tests/Unit/Resource/Driver/LocalDriverTest.php+1 −1
- typo3/sysext/css_styled_content/Classes/Controller/CssStyledContentController.php+7 −7
- typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php+1 −1
- typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbQueryParserTest.php+2 −2
- typo3/sysext/extensionmanager/Classes/Utility/Connection/TerUtility.php+2 −2
- typo3/sysext/extensionmanager/Classes/Utility/Parser/ExtensionXmlPullParser.php+1 −1
- typo3/sysext/extensionmanager/Classes/Utility/Parser/MirrorXmlPullParser.php+1 −1
- typo3/sysext/extensionmanager/Classes/ViewHelpers/DownloadExtensionViewHelper.php+1 −1
- typo3/sysext/feedit/Classes/FrontendEditPanel.php+4 −4
- typo3/sysext/felogin/Classes/Controller/FrontendLoginController.php+3 −3
- typo3/sysext/filelist/Classes/Controller/FileListController.php+2 −2
- typo3/sysext/filelist/Classes/FileList.php+1 −1
- typo3/sysext/frontend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php+3 −3
- typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php+1 −1
- typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php+3 −3
- typo3/sysext/frontend/Classes/ContentObject/RecordsContentObject.php+1 −1
- typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php+3 −3
- typo3/sysext/frontend/Classes/Imaging/GifBuilder.php+11 −11
- typo3/sysext/frontend/Classes/Page/PageGenerator.php+1 −1
- typo3/sysext/frontend/Classes/Plugin/AbstractPlugin.php+1 −1
- typo3/sysext/frontend/Classes/View/AdminPanelView.php+1 −1
- typo3/sysext/impexp/Classes/Controller/ImportExportController.php+3 −3
- typo3/sysext/impexp/Classes/Clickmenu.php+3 −3
- typo3/sysext/impexp/Classes/Export.php+8 −8
- typo3/sysext/impexp/Classes/Import.php+4 −4
- typo3/sysext/impexp/Classes/ImportExport.php+10 −10
- typo3/sysext/impexp/Tests/Functional/Export/AbstractExportTestCase.php+1 −1
- typo3/sysext/indexed_search/Classes/Controller/SearchController.php+4 −4
- typo3/sysext/indexed_search/Classes/Domain/Repository/IndexSearchRepository.php+2 −2
- typo3/sysext/indexed_search/Classes/Utility/DoubleMetaPhoneUtility.php+29 −29
- typo3/sysext/indexed_search/Classes/FileContentParser.php+1 −1
- typo3/sysext/indexed_search/Classes/Indexer.php+5 −5
- typo3/sysext/indexed_search/Classes/Lexer.php+3 −3
- typo3/sysext/install/Classes/Controller/Action/Tool/CleanUp.php+1 −1
- typo3/sysext/install/Classes/Service/SqlSchemaMigrationService.php+14 −14
- typo3/sysext/lang/Classes/Service/TerService.php+1 −1
- typo3/sysext/linkvalidator/Classes/LinkAnalyzer.php+1 −1
- typo3/sysext/lowlevel/Classes/View/DatabaseIntegrityView.php+6 −6
- typo3/sysext/recordlist/Classes/RecordList/AbstractDatabaseRecordList.php+6 −6
- typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php+26 −26
- typo3/sysext/recordlist/Classes/RecordList.php+3 −3
- typo3/sysext/reports/Classes/Report/Status/ConfigurationStatus.php+1 −1
- typo3/sysext/reports/Classes/Task/SystemStatusUpdateTaskNotificationEmailField.php+1 −1
- typo3/sysext/rtehtmlarea/Classes/Controller/ParseHtmlController.php+1 −1
- typo3/sysext/rtehtmlarea/Classes/Controller/SpellCheckingController.php1+7 −7
- typo3/sysext/rtehtmlarea/Classes/Controller/UserElementsController.php+4 −4
- typo3/sysext/rtehtmlarea/Classes/Extension/BlockElements.php+1 −1
- typo3/sysext/rtehtmlarea/Classes/Extension/InlineElements.php+1 −1
- typo3/sysext/rtehtmlarea/Classes/Extension/SelectFont.php+4 −4
- typo3/sysext/rtehtmlarea/Classes/RteHtmlAreaApi.php+1 −1
- typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php+1 −1
- typo3/sysext/scheduler/Classes/Example/TestTask.php+1 −1
- typo3/sysext/setup/Classes/Controller/SetupModuleController.php+1 −1
- typo3/sysext/sys_action/Classes/ActionTask.php+2 −2
- typo3/sysext/taskcenter/Classes/Controller/TaskModuleController.php+1 −1
- typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateConstantEditorModuleFunctionController.php+1 −1
- typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateObjectBrowserModuleFunctionController.php+7 −7
- typo3/sysext/version/Classes/Controller/VersionModuleController.php+1 −1
- typo3/sysext/version/Classes/Hook/DataHandlerHook.php+4 −4
- typo3/sysext/wizard_crpages/Classes/Controller/CreatePagesWizardModuleFunctionController.php+1 −1
- typo3/sysext/workspaces/Classes/Controller/Remote/RemoteServer.php+1 −1
- typo3/sysext/workspaces/Classes/Hook/PreviewHook.php+1 −1
- typo3/sysext/workspaces/Classes/Service/GridDataService.php+5 −5
Review log 1722
-
Georg Ringer uploaded patch set 1 01/30/17, 06:43
-
TYPO3com voted on patch set 1 V -1 01/30/17, 06:51 Completed build in 07m 51s on Mon, 30 Jan, 07:51 AM Test Summary: 54 of 55659 failed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-7201
-
Georg Ringer uploaded patch set 2 01/30/17, 07:14
-
TYPO3com voted on patch set 2 V +1 01/30/17, 07:21 Completed build in 06m 57s on Mon, 30 Jan, 08:21 AM Test Summary: 55655 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-7202
-
Markus Klein commented on patch set 2 CR -1 01/30/17, 10:43
-
Markus Klein commented on patch set 2 01/30/17, 10:50
TimeTracker.php:512FILEext-all-debug.js:34046=== too in JS filesSpellCheckingController.php:436=== -
Georg Ringer uploaded patch set 3 01/30/17, 18:06
-
TYPO3com voted on patch set 3 V +1 01/30/17, 18:15 Completed build in 08m 52s on Mon, 30 Jan, 07:15 PM Test Summary: 55655 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-7242
-
Christian Weiske commented on patch set 3 01/30/17, 18:52
Is this really bug #79549, or is that number a typo? -
Georg Ringer updated the commit message in patch set 4 01/31/17, 08:55
-
TYPO3com voted on patch set 4 V +1 01/31/17, 09:02 Completed build in 07m 11s on Tue, 31 Jan, 10:02 AM Test Summary: 55655 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-7266
-
Claus Due commented on patch set 4 01/31/17, 18:08
Phew, this could really give some problems with edge cases. Some extremely important classes such as DataHandler, ReferenceIndex, RelationHandler may very well depend on not doing strict checks. Good that you left out potentially false positives but we *really* need to be extremely careful here. 410 evaluations is a LOT of space for problems to hide. -
Markus Klein uploaded patch set 5 01/31/17, 18:38
-
Markus Klein voted on patch set 5 CR +1 V +1 01/31/17, 18:42
-
TYPO3com voted on patch set 5 V +1 01/31/17, 18:46 Completed build in 08m 28s on Tue, 31 Jan, 07:46 PM Test Summary: 55655 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-7287
-
Jigal van Hemert commented on patch set 5 01/31/17, 20:45
There are quite a few "dangerous" cases where it isn't really clear if the first operand is a string; this could change behaviour. A small note that is easy to fix: the commit message says "Resolves" instead of "Releases".Releases:NewContentElementController.php:494This is a dangerous one. If $config['type'] is for some reason a number or resource it would previously convert 'select' to a number too.EditDocumentController.php:610Dangerous. $tableName as number would previously forced a numeric comparison.EditDocumentController.php:652Dangrous; could previously trigger a numeric comparison. -
Markus Klein commented on patch set 5 01/31/17, 21:38
@Jigal: If those cases cause an issue in any direction, I really opt to fix the calling code, because that would be broken beyond repair then.NewContentElementController.php:494ReplyI don't get that one. I mean if type is something else than a string then the whole thing is broken anyway.EditDocumentController.php:610ReplySo this very expression would be true iff $tableName = 0EditDocumentController.php:652Replynope. getNewIconMode returns a string (the result of trim()) -
Stefan Neufeind commented on patch set 5 01/31/17, 23:08
I'm with Markus here. If some variable could have been a non-string there in the past and something "worked" because of that it wasn't working correct/as expected until now imho, calls for a fix. -
Stefan Neufeind voted on patch set 5 CR +1 01/31/17, 23:08
-
Benni Mack voted on patch set 5 CR +2 02/01/17, 05:33
-
Benni Mack voted on patch set 5 V +2 02/01/17, 06:20
-
Gerrit merged patch set 5 02/01/17, 06:20
InlineRecordContainer.php:387