File: phpbb/request/request.php
Unmodified
Added
Modified
Removed
Line 168 | Line 168 |
---|
{ $GLOBALS[$this->super_globals[$super_global]][$var_name] = $value; }
|
{ $GLOBALS[$this->super_globals[$super_global]][$var_name] = $value; }
|
}
if (!$this->super_globals_disabled()) { unset($GLOBALS[$this->super_globals[$super_global]][$var_name]); $GLOBALS[$this->super_globals[$super_global]][$var_name] = $value;
| |
} }
| } }
|
Line 275 | Line 269 |
---|
*/ public function file($form_name) {
|
*/ public function file($form_name) {
|
return $this->variable($form_name, array('name' => 'none'), false, \phpbb\request\request_interface::FILES);
| return $this->variable($form_name, array('name' => 'none'), true, \phpbb\request\request_interface::FILES);
|
}
/**
| }
/**
|
Line 325 | Line 319 |
---|
*/ public function is_secure() {
|
*/ public function is_secure() {
|
return $this->server('HTTPS') == 'on';
| $https = $this->server('HTTPS'); $https = $this->server('HTTP_X_FORWARDED_PROTO') === 'https' ? 'on' : $https; return !empty($https) && $https !== 'off';
|
}
/**
| }
/**
|
Line 415 | Line 411 |
---|
public function get_super_global($super_global = \phpbb\request\request_interface::REQUEST) { return $this->input[$super_global];
|
public function get_super_global($super_global = \phpbb\request\request_interface::REQUEST) { return $this->input[$super_global];
|
| }
/** * {@inheritdoc} */ public function escape($var, $multibyte) { if (is_array($var)) { $result = array(); foreach ($var as $key => $value) { $this->type_cast_helper->set_var($key, $key, gettype($key), $multibyte); $result[$key] = $this->escape($value, $multibyte); } $var = $result; } else { $this->type_cast_helper->set_var($var, $var, 'string', $multibyte); }
return $var;
|
} }
| } }
|