[BUGFIX] Invalid "unequal"-statement and string-quoting in SQL
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Mon, 19 Dec 2011 13:24:31 +0000 (14:24 +0100)
committerXavier Perseguers <xavier@typo3.org>
Wed, 8 Feb 2012 08:42:43 +0000 (09:42 +0100)
commit3aa0ca83b66a0350ffed7252d5a08951b61286c6
tree44b3f0aed26b451d7a4d3ba03da3f13db890f1fc
parent569f7f5fb5d7a9c70bbe91cbc48b23c55c1aa994
[BUGFIX] Invalid "unequal"-statement and string-quoting in SQL

There are multiple "!=" in SQL statements. They should be "<>".
MySQL understands "!=" for the compatibility with early versions
but it is not a standard SQL and should not be used.

Strings should be enclosed in single-quotes. Some systems use
double-quotes to mark identifiers in contrast to literals.

(Added some small fullQuote-calls along the way for
completeness or dropped quotes where uid is clearly just
an intval.)

Change-Id: If183e3451dac4cebb179b4c1f8c2e0ef6d5a6efd
Resolves: #32161
Releases: 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/8900
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
32 files changed:
t3lib/class.t3lib_admin.php
t3lib/class.t3lib_befunc.php
t3lib/class.t3lib_clipboard.php
t3lib/class.t3lib_extfilefunc.php
t3lib/class.t3lib_page.php
t3lib/class.t3lib_tcemain.php
t3lib/class.t3lib_tstemplate.php
t3lib/class.t3lib_userauthgroup.php
typo3/sysext/cms/layout/class.tx_cms_layout.php
typo3/sysext/cms/tslib/class.tslib_menu.php
typo3/sysext/css_styled_content/static/v3.8/setup.txt
typo3/sysext/css_styled_content/static/v3.9/setup.txt
typo3/sysext/css_styled_content/static/v4.2/setup.txt
typo3/sysext/css_styled_content/static/v4.3/setup.txt
typo3/sysext/css_styled_content/static/v4.4/setup.txt
typo3/sysext/css_styled_content/static/v4.5/setup.txt
typo3/sysext/em/classes/connection/class.tx_em_connection_extdirectsoap.php
typo3/sysext/em/classes/database/class.tx_em_database.php
typo3/sysext/felogin/pi1/class.tx_felogin_pi1.php
typo3/sysext/indexed_search/class.crawler.php
typo3/sysext/indexed_search/class.indexer.php
typo3/sysext/indexed_search/mod/index.php
typo3/sysext/indexed_search/pi/class.tx_indexedsearch.php
typo3/sysext/install/updates/class.tx_coreupdates_imagelink.php
typo3/sysext/install/updates/class.tx_coreupdates_migrateworkspaces.php
typo3/sysext/install/updates/class.tx_coreupdates_statictemplates.php
typo3/sysext/lowlevel/clmods/class.missing_relations.php
typo3/sysext/lowlevel/clmods/class.versions.php
typo3/sysext/recycler/classes/model/class.tx_recycler_model_deletedRecords.php
typo3/sysext/recycler/classes/model/class.tx_recycler_model_tables.php
typo3/sysext/scheduler/class.tx_scheduler.php
typo3/sysext/statictemplates/ext_tables_static+adt.sql