[Request] Tabs in profile member

Discuss the development of future releases of phpBB (phpBB 3.x minor releases) and MODing/Coding related questions.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Dakin Quelia
New member
New member
Posts: 49
Joined: 12 Nov 2008, 01:26
Real name: Daniel
Location: Belgique
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

[Request] Tabs in profile member

Postby Dakin Quelia » 28 Oct 2009, 21:23

Last edited by Dakin Quelia on 02 Nov 2009, 21:02, edited 1 time in total.

Elglobo
Past Contributor
Past Contributor
Posts: 120
Joined: 15 Jul 2008, 19:42
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: [Request] Tabs in profile member

Postby Elglobo » 29 Oct 2009, 13:25

: L'hébergement et l'assistance de votre forum phpBB en toute tranquillité.

- My First forum, créer votre forum phpBB3 facilement !

Dakin Quelia
New member
New member
Posts: 49
Joined: 12 Nov 2008, 01:26
Real name: Daniel
Location: Belgique
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: [Request] Tabs in profile member

Postby Dakin Quelia » 29 Oct 2009, 18:44


User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: [Request] Tabs in profile member

Postby Obsidian » 30 Oct 2009, 00:02

Be very, very careful there. Messing with $_SERVER variables unescaped is very dangerous.

Dakin Quelia
New member
New member
Posts: 49
Joined: 12 Nov 2008, 01:26
Real name: Daniel
Location: Belgique
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: [Request] Tabs in profile member

Postby Dakin Quelia » 30 Oct 2009, 01:12

It used in phpBB. :)

How secure it?

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: [Request] Tabs in profile member

Postby Obsidian » 30 Oct 2009, 01:47

It is used in phpBB, however it is used after it is cleaned of possible injects. It's usually a good idea to clean any external data, just to be on the safe side.

Dakin Quelia
New member
New member
Posts: 49
Joined: 12 Nov 2008, 01:26
Real name: Daniel
Location: Belgique
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: [Request] Tabs in profile member

Postby Dakin Quelia » 02 Nov 2009, 21:13

My request is solved. But I don't know protect $_SERVER. ;)

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: [Request] Tabs in profile member

Postby Obsidian » 02 Nov 2009, 22:01

If you're using it in a straight comparison, you should be good. However, if you have to manipulate data using it, you should probably check to see if the data matches what it should carry (this you can do with preg_match() usually). For example, the IP address -- it should be checked and filtered to verify that it /is/ an IP address.


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “phpBB Development discussion”

Who is online

Users browsing this forum: No registered users and 4 guests