diff options
author | Bharat Mediratta <bharat@menalto.com> | 2012-06-05 21:25:56 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2012-06-05 21:25:56 -0700 |
commit | 03d55d25307054547378db123e30c59bebb6944f (patch) | |
tree | 6b671785fc78ccf0dc71adb36094f31118398dbe /modules/gallery/libraries | |
parent | b416d7e3d58d8d1510e12bbbe5363218c41ee902 (diff) |
Encode urls in 404 log entries. Fixes #1882.
Diffstat (limited to 'modules/gallery/libraries')
-rw-r--r-- | modules/gallery/libraries/MY_Kohana_Exception.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/libraries/MY_Kohana_Exception.php b/modules/gallery/libraries/MY_Kohana_Exception.php index b74c80b1..0c07ea5e 100644 --- a/modules/gallery/libraries/MY_Kohana_Exception.php +++ b/modules/gallery/libraries/MY_Kohana_Exception.php @@ -23,7 +23,7 @@ class Kohana_Exception extends Kohana_Exception_Core { */ public static function text($e) { if ($e instanceof Kohana_404_Exception) { - return "File not found: " . Router::$complete_uri; + return "File not found: " . rawurlencode(Router::$complete_uri); } else { return sprintf( "%s [ %s ]: %s\n%s [ %s ]\n%s", |