Bug #17001
closedconfig.linkVars check doesn't allow negative ranges
0%
Description
The newly introduced linkVars check in TYPO3 4.1 doesn't allow negative ranges.
Example:
config.linkVars = my_variable(1-5) is valid
config.linkVars = my_variable(-1-5) doesn't work
config.linkVars = my_variable(-1--3) doesn't work and looks very ugly
I suggest to use ".." as delimiter, e.g.
config.linVars = my_variable(-1..-3)
Possibly it is allowed in TYPO3 4.2 to use config.linkVars = tx_myext_pi1[var](1..-3), but we should change the delimiter from "" to ".." now.
(issue imported from #M5009)
Files
Updated by Michael Stucki almost 18 years ago
I get the feeling of inconsistency here. I agree that -5--1 looks ugly, but if you insert spaces between, it is not so bad anymore:
config.linkVars = test(-1 - -3)
Personally I would favour this over adding a new separator. What do you think?
Updated by Oliver Hader almost 18 years ago
I can live with reusing the "-" separator. But the code getting the lower and upper bound has to be changed anyway (currently "$range = explode('-',$needle);")
Updated by Alexander Opitz over 11 years ago
- Category deleted (
Communication) - Status changed from New to Needs Feedback
- Target version deleted (
0)
As this report is very old, is the handling in newer TYPO3 CMS Versions (like 6.0/6.1) more like you expect it?
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
No feedback for over 90 days.