Bug #20890

unused parameter for t3lib_db::fullQuoteStr() and fullQuoteArray()

Added by David Bruchmann about 11 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-08-15
Due date:
% Done:

0%

TYPO3 Version:
4.2
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

the 2nd parameter $table isn't used in 3lib_db::fullQuoteStr($str, $table) and fullQuoteArray($arr, $table, $noQuote=FALSE) and has either be set to $table='' or to handled in some kind.
The first way is for backward-compatibility only, the 2nd way avoids reduced notation to include any mandatory handling (perhaps later).

(issue imported from #M11727)

History

#1 Updated by David Bruchmann about 11 years ago

quoteStr() and escapeStrForLike() are concerned too

Perhaps this construction is used by dbal in another useful way - I did not check this point.

#2 Updated by Georg Ringer over 9 years ago

  • Status changed from New to Closed
  • Target version deleted (0)

yes, this is needed for DBAL, but IMHO also when having joins to identify the correct table.

#3 Updated by Xavier Perseguers over 9 years ago

Exactly. Thanks Georg.

Also available in: Atom PDF