Bug #21854

URL's with a very long Number in type returns a false Number in error message

Added by Thomas Lange over 3 years ago. Updated 8 months ago.

Status:Closed Start date:2009-12-13
Priority:Should have Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
TYPO3 Version:4.3 Complexity:
PHP Version:5.2
Votes: 0

Description

If a page-type (pageNum) doesn't exist I get an Error, that's okay
E.g http://localhost/index.php?type=2

I get a page with:
Error!

The page is not configured! [type= 2][]
That's okay.

On the other hand, if I use a very long number in URL-paramter 'type' it returns a false Number in the error message, e.g.:

http://localhost/index.php?type=11111111111111111111
--> The page is not configured! [type= 9223372036854775807][]

or even
http://localhost/index.php?type=1111111111111111111111111
--> The page is not configured! [type= 9223372036854775807][]
(the same wrong number)

It seems to stand in context with data type 'int'
Number 9223372036854775807 is 2^63 - 1

(issue imported from #M13027)

History

Updated by Georg Ringer over 3 years ago

this happens in class.tslib_fe.php line 933 >
$this->type = intval($this->type);

and its normal behaviour of php, see php.net
------------------------------
The maximum value depends on the system. 32 bit systems have a maximum signed integer range of 2147483648 to 2147483647. So for example on such a system, intval('1000000000000') will return 2147483647. The maximum signed integer value for 64 bit systems is 9223372036854775807.
-----------------------------

can be closed IMO

Updated by Simon Schaufelberger 8 months ago

  • Target version deleted (0)

this is nothing typo3 related. can be closed.

Updated by Stefan Galinski 8 months ago

  • Category deleted (Communication)
  • Status changed from New to Closed

Also available in: Atom PDF