aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/request
Commit message (Collapse)AuthorAgeFilesLines
* [ticket/10495] Update request/type_cast_helper for PHP 5.4 magic_quotes_gpc dropAndreas Fischer2012-02-041-1/+1
| | | | PHPBB3-10495
* [ticket/9916] Updating header license and removing Version $Id$Unknown2011-12-315-5/+5
| | | | PHPBB3-9916
* [feature/request-class] Remove $html_encode arg, force manual decodingIgor Wiedler2011-08-183-28/+16
| | | | PHPBB3-9716
* [feature/request-class] Add is_secure method to request for HTTPSIgor Wiedler2011-08-182-0/+17
| | | | PHPBB3-9716
* [feature/request-class] Make server() use the $html_encode parameterIgor Wiedler2011-08-061-2/+2
| | | | | | | | | $request->server() should not auto html-escape values. header() however should. Also introduce some tests for this behaviour. Thanks to nn- for catching this. PHPBB3-9716
* [feature/request-class] Minor spacing CS adjustmentsIgor Wiedler2011-07-161-1/+1
| | | | PHPBB3-9716
* [feature/request-class] Add server(), header() and is_ajax() to requestIgor Wiedler2011-07-153-15/+108
| | | | | | | | | | | | Extend the request class with helpers for reading server vars (server()) and HTTP request headers (header()). Refactor the existing code base to make use of these helpers, make $_SERVER a deactivated super global. Also introduce an is_ajax() method, which checks the X-Requested-With header for the value 'XMLHttpRequest', which is sent by JavaScript libraries, such as jQuery. PHPBB3-9716
* [feature/request-class] Fix the error message when accessing superglobalIgor Wiedler2011-02-281-1/+1
| | | | | | Adjust the misleading "This error message was generated" text. PHPBB3-9716
* [feature/request-class] Prevent recursive_set_var from applying ↵Igor Wiedler2010-09-191-1/+1
| | | | | | htmlspecialchars twice PHPBB3-9716
* [feature/request-class] Refactor request classes to use autoloadingIgor Wiedler2010-09-175-9/+9
| | | | | | | | | All class names have been adjusted to use a phpbb_request prefix, allowing them to be autoloaded. Also introduces some improvements to autoloading in general. PHPBB3-9716
* [feature/request-class] Automatically normalize multibyte data in request_varIgor Wiedler2010-09-171-0/+5
| | | | | | | | To save users from having to run everything through utf8_normalize_nfc(), a call is done automatically from within set_var, which is called by request_var. PHPBB3-9716
* [feature/request-class] Refactored request class and wrapper functions.Nils Adermann2010-09-171-143/+23
| | | | | | | | | | | | | | | The request class - now makes use of the new type cast helper (dependency injection) - has no static methods anymore. - now has a constructor argument to leave super globals turned on Brought back the set_var function in functions.php. It is now a wrapper around the type cast helper. It creates an instance on the fly. The request_var wrapper function now has an optional last argument to inject the request class instance, rather than abusing the $var_name. PHPBB3-9716
* [feature/request-class] Extracted type casting helpers from the request class.Nils Adermann2010-09-172-0/+241
| | | | | | | | These methods should be available without having to instantiate a request class object, better separation of concerns. A set_var wrapper around this class no longer requires a request object at all. PHPBB3-9716
* [feature/request-class] Adding a request class based on ascraeus-experiment.Nils Adermann2010-09-173-0/+636
The well known request_var function is now a wrapper that calls a method on a phpbb_request object. The class provides additional functionality. It can replace all super globals with special objects that throw errors when being accessed. They still allow isset operations to keep backward compatibility with isset($_POST['var']) checks. The phpbb_request class implements the phpbb_request_interface which is available for easy mocking of input in tests. PHPBB3-9716