diff --git a/application/views/errors/html/error_exception.php b/application/views/errors/html/error_exception.php
index f80f59dfa6..66b368636c 100644
--- a/application/views/errors/html/error_exception.php
+++ b/application/views/errors/html/error_exception.php
@@ -187,6 +187,43 @@
+
+
+
+
+
+ Path |
+ = $request->uri ?> |
+
+
+ HTTP Method |
+ = $request->getMethod(true) ?> |
+
+
+ IP Address |
+ = $request->getIPAddress() ?> |
+
+
+ Is AJAX Request? |
+ = $request->isAJAX() ? 'yes' : 'no' ?> |
+
+
+ Is CLI Request? |
+ = $request->isCLI() ? 'yes' : 'no' ?> |
+
+
+ Is Secure Request? |
+ = $request->isSecure() ? 'yes' : 'no' ?> |
+
+
+ User Agent |
+ = $request->getUserAgent() ?> |
+
+
+
+
+
+
@@ -227,6 +264,31 @@
+
+ getHeaders(); ?>
+
+
+
+ Headers
+
+
+
+
+ Header |
+ Value |
+
+
+
+ $value) : ?>
+
+ = esc($name, 'html') ?> |
+ = esc($request->getHeaderLine($name), 'html') ?> |
+
+
+
+
+
+
diff --git a/system/Debug/Exceptions.php b/system/Debug/Exceptions.php
index 3f3c636e7c..696ae871c0 100644
--- a/system/Debug/Exceptions.php
+++ b/system/Debug/Exceptions.php
@@ -48,7 +48,8 @@ class Exceptions
*/
public function exceptionHandler(\Throwable $exception)
{
- // Get Exception Info
+ // Get Exception Info - these are available
+ // directly in the template that's displayed.
$type = get_class($exception);
$code = $exception->getCode();
$message = $exception->getMessage();
@@ -76,7 +77,7 @@ class Exceptions
$templates_path = '';
if (empty($templates_path))
{
- $templates_path = APPPATH.'views'.DIRECTORY_SEPARATOR.'errors'.DIRECTORY_SEPARATOR;
+ $templates_path = APPPATH.'views/errors/';
}
// Make a nicer title based on the type of Exception.
@@ -84,7 +85,7 @@ class Exceptions
if (is_cli())
{
- $templates_path .= 'cli'.DIRECTORY_SEPARATOR;
+ $templates_path .= 'cli/';
// CLI will never accessed by general public
// while in production.
@@ -93,7 +94,7 @@ class Exceptions
else
{
header('HTTP/1.1 401 Unauthorized', true, 500);
- $templates_path .= 'html'.DIRECTORY_SEPARATOR;
+ $templates_path .= 'html/';
}
if (ob_get_level() > $this->ob_level + 1)
diff --git a/system/HTTP/IncomingRequest.php b/system/HTTP/IncomingRequest.php
index 639d279b0c..1998700584 100644
--- a/system/HTTP/IncomingRequest.php
+++ b/system/HTTP/IncomingRequest.php
@@ -155,7 +155,7 @@ class IncomingRequest extends Request
*
* @return mixed
*/
- public function get($index = null, $filter = null)
+ public function getGet($index = null, $filter = null)
{
return $this->fetchGlobal(INPUT_GET, $index, $filter);
}
@@ -170,7 +170,7 @@ class IncomingRequest extends Request
*
* @return mixed
*/
- public function post($index = null, $filter = null)
+ public function getPost($index = null, $filter = null)
{
return $this->fetchGlobal(INPUT_POST, $index, $filter);
}
@@ -185,7 +185,7 @@ class IncomingRequest extends Request
*
* @return mixed
*/
- public function postGet($index = null, $filter = null)
+ public function getPostGet($index = null, $filter = null)
{
// Use $_POST directly here, since filter_has_var only
// checks the initial POST data, not anything that might
@@ -205,7 +205,7 @@ class IncomingRequest extends Request
*
* @return mixed
*/
- public function getPost($index = null, $filter = null)
+ public function getGetPost($index = null, $filter = null)
{
// Use $_GET directly here, since filter_has_var only
// checks the initial GET data, not anything that might
diff --git a/system/HTTP/Request.php b/system/HTTP/Request.php
index 5b110e79ef..ab5b2c6353 100644
--- a/system/HTTP/Request.php
+++ b/system/HTTP/Request.php
@@ -56,7 +56,7 @@ class Request extends Message implements RequestInterface
// e.g. client_ip, proxy_ip1, proxy_ip2, etc.
sscanf($spoof, '%[^,]', $spoof);
- if ( ! $this->validIP($spoof))
+ if ( ! $this->isValidIP($spoof))
{
$spoof = NULL;
}
@@ -86,7 +86,7 @@ class Request extends Message implements RequestInterface
}
// We have a subnet ... now the heavy lifting begins
- isset($separator) OR $separator = $this->validIP($this->ipAddress, 'ipv6') ? ':' : '.';
+ isset($separator) OR $separator = $this->isValidIP($this->ipAddress, 'ipv6') ? ':' : '.';
// If the proxy entry doesn't match the IP protocol - skip it
if (strpos($proxy_ips[$i], $separator) === FALSE)
@@ -150,7 +150,7 @@ class Request extends Message implements RequestInterface
}
}
- if ( ! $this->validIP($this->ipAddress))
+ if ( ! $this->isValidIP($this->ipAddress))
{
return $this->ipAddress = '0.0.0.0';
}