[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)
committerSteffen Ritter <info@rs-websystems.de>
Mon, 12 Mar 2012 16:23:32 +0000 (17:23 +0100)
commit7d5bf8a3d9f1f509940c0073b33f8d8ae95f0b6f
treedc7066b43dbe6bf03df410c1584ec6da11f8c7a8
parent2c450c26b4056efbf210793bdb3e3a6b39a4133f
[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/8901
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
31 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/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