[RFC|Merged] Request Class
- bantu
- 3.0 Release Manager
- Posts: 557
- Joined: Thu Sep 07, 2006 11:22 am
- Location: Karlsruhe, Germany
- Contact:
Re: [RFC|Accepted] Request Class
There are remaining accesses to $_COOKIE that have to be converted.
- nickvergessen
- Former Team Member
- Posts: 733
- Joined: Sun Oct 07, 2007 11:54 am
- Location: Stuttgart, Germany
- Contact:
Re: [RFC|Accepted] Request Class
I just used $_POST and got this error-message:
The last sentence is ... it's really confusing me I didn't even know, that error-messages have to be generated, I thought they were just there?!
Code: Select all
General Error
Illegal use of $_POST. You must use the request class or request_var() to access input data. Found in E:\phpBB-development\htdocs\phpBB-git\3.1\phpBB\includes\mcp\mcp_main.php on line 664.
This error message was generated
Member of the Development-Team — No Support via PM
- bantu
- 3.0 Release Manager
- Posts: 557
- Joined: Thu Sep 07, 2006 11:22 am
- Location: Karlsruhe, Germany
- Contact:
Re: [RFC|Accepted] Request Class
Looks like an incomplete sentence. At least I think it wasn't intentional because punctuation is missing.
Code: Select all
afischer@miraculix:/var/www/projects/phpbb3 (develop) phpBB $ grep "This error message was generated" . -R
./includes/request/deactivated_super_global.php: $message = 'Illegal use of $' . $this->name . '. You must use the request class or request_var() to access input data. Found in %s on line %d. This error message was generated';
Re: [RFC|Accepted] Request Class
I believe the thinking behind that was that PHP itself outputs a file name and line number, but they would reflect that piece of code triggering the error instead of the file and line having actually caused the issue. But apparently your PHP does not output those?
Re: [RFC|Merged] Request Class
That was actually intentional so that the standard PHP output which appends file and line number would say generated in file xyz on line abc ... I guess this doesn't always work?
Re: [RFC|Merged] Request Class
I'm always getting an error message that ends with 'This error message was generated'. PHP 5.3.3.
- bantu
- 3.0 Release Manager
- Posts: 557
- Joined: Thu Sep 07, 2006 11:22 am
- Location: Karlsruhe, Germany
- Contact:
Re: [RFC|Merged] Request Class
Would it make sense to get rid of trim() in set_var? See for example http://tracker.phpbb.com/browse/PHPBB3-8713
Re: [RFC|Merged] Request Class
Mysql does trimming, with that in mind maybe we should keep it.
How about adding a 'password' (or 'raw') field type which will not be trimmed?
My guess is that trimming the username is still ok. Practically speaking, on most installations if someone entered a space before their username by accident I would expect them to want to be logged in anyway, and for those installs where it matters the admin could patch the code to use the password field type for username as well.
How about adding a 'password' (or 'raw') field type which will not be trimmed?
My guess is that trimming the username is still ok. Practically speaking, on most installations if someone entered a space before their username by accident I would expect them to want to be logged in anyway, and for those installs where it matters the admin could patch the code to use the password field type for username as well.