CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #35139

still one testInt() not correctly checked for typo3 4.6

Added by Jan Schreier about 1 year ago. Updated about 1 year ago.

Status:Resolved Start date:2012-03-22
Priority:Should have Due date:
Assignee:Franz Holzinger % Done:

100%

Category:-
Target version:-
Has patch:Yes
Votes: 0

Description

in class.tx_srfeuserregister_controldata.php
there is one line still without the check for utiltiy_math:
$rc = (t3lib_div::testInt($this->conf['pid']) ? intval($this->conf['pid']) : $TSFE->id);

should be:
$rc = (class_exists('t3lib_utility_Math') ? (t3lib_utility_Math::canBeInterpretedAsInteger($recipient) ? intval($this->conf['pid']) : $TSFE->id) : (t3lib_div::testInt($this->conf['pid']) ? intval($this->conf['pid']) : $TSFE->id));

patch-35139.diff (1.3 kB) Franz Holzinger, 2012-03-22 13:07

Associated revisions

Revision 59522
Added by Franz Holzinger about 1 year ago

  • fix Bug #35139: remove testInt for TYPO3 4.6 in function getPid

Revision 59522
Added by Franz Holzinger about 1 year ago

  • fix Bug #35139: remove testInt for TYPO3 4.6 in function getPid

History

Updated by Jan Schreier about 1 year ago

sorry. small error in the "should be" line. this is the fixed one:
$rc = (class_exists('t3lib_utility_Math') ? (t3lib_utility_Math::canBeInterpretedAsInteger($this->conf['pid']) ? intval($this->conf['pid']) : $TSFE->id) : (t3lib_div::testInt($this->conf['pid']) ? intval($this->conf['pid']) : $TSFE->id));

Updated by Franz Holzinger about 1 year ago

  • File patch-35139.diff added
  • % Done changed from 0 to 100
  • Has patch changed from No to Yes

Updated by Stanislas Rolland about 1 year ago

  • Status changed from New to Resolved
  • Assignee set to Franz Holzinger

Also available in: Atom PDF