Project

General

Profile

Actions

Bug #21854

closed

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

Added by Thomas Lange over 14 years ago. Updated over 11 years ago.

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

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions #1

Updated by Georg Ringer over 14 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

Actions #2

Updated by Simon Schaufelberger over 11 years ago

  • Target version deleted (0)

this is nothing typo3 related. can be closed.

Actions #3

Updated by Stefan Galinski over 11 years ago

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

Also available in: Atom PDF