set a request variable, how

Discussion forum for MOD Writers regarding MOD Development.
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: set a request variable, how

Post by igorw »

AGC wrote:So if the variable is sanitized, I can set $_REQUEST['variable'] = $data as integer.
If you set it on $_REQUEST and then request_var it later, it doesn't have to be sanitized, because request_var handles sanitization.
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
User avatar
AGC
Registered User
Posts: 292
Joined: Sat Sep 15, 2007 10:26 pm
Contact:

Re: set a request variable, how

Post by AGC »

igorw wrote:
AGC wrote:So if the variable is sanitized, I can set $_REQUEST['variable'] = $data as integer.
If you set it on $_REQUEST and then request_var it later, it doesn't have to be sanitized, because request_var handles sanitization.
I see. OK. Thanks.
(phpBB 2.0.x): []Admin Topics List[] MOD. << Description & Download. , []Highlight Author[] MOD.

Donate-paypal
(phpBB 3.0.x)[ver] MODs: [RC1] >Import old *.pak files MOD. + . . .[8] > ACP - Modules Quick Access (MQA) MOD. + . . . [7-PL1] > Multi Smile (actions) MOD
Locked

Return to “[3.0.x] MOD Writers Discussion”