diff options
| author | Nathan Kinkade <nath@nkinka.de> | 2012-06-18 16:17:55 +0000 |
|---|---|---|
| committer | Nathan Kinkade <nath@nkinka.de> | 2012-06-18 16:17:55 +0000 |
| commit | 527bc809aaa6d48e7c1a7be50de31a4c3adcee90 (patch) | |
| tree | fb7432e06af9191f2300af97685f235325d36f57 /modules/gallery/libraries/MY_Kohana_Exception.php | |
| parent | b52e834bd0bab530e98537d52b31d4b37f199739 (diff) | |
| parent | c48df3b8199802a75f30f38c6f7b3440f9fde4ca (diff) | |
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'modules/gallery/libraries/MY_Kohana_Exception.php')
| -rw-r--r-- | modules/gallery/libraries/MY_Kohana_Exception.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/gallery/libraries/MY_Kohana_Exception.php b/modules/gallery/libraries/MY_Kohana_Exception.php index dd04b25f..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", @@ -94,4 +94,8 @@ class Kohana_Exception extends Kohana_Exception_Core { } return $result; } + + public static function debug_path($file) { + return html::clean(parent::debug_path($file)); + } }
\ No newline at end of file |
