[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)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 28 Jan 2012 13:23:07 +0000 (14:23 +0100)
commit62b05fe9e8997f01c4be33b1009772f6ba4f4d2f
tree5fc48b4aa922b77b3b62d2dcd007b012b53709b5
parent1ca89f41140e36e2b2b973218ffa983543dd440c
[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/6977
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Tolleiv Nietsch
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
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