From dfcf0647db37e8a608d124125236a87ec14f0745 Mon Sep 17 00:00:00 2001 From: Jirayu Kanda Date: Wed, 23 Nov 2016 17:24:00 +0700 Subject: [PATCH] fix REQUEST_URI decode for other language --- src/Klein/Request.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Klein/Request.php b/src/Klein/Request.php index 6e03b812..ce423988 100644 --- a/src/Klein/Request.php +++ b/src/Klein/Request.php @@ -5,7 +5,7 @@ * @author Chris O'Hara * @author Trevor Suarez (Rican7) (contributor and v2 refactorer) * @copyright (c) Chris O'Hara - * @link https://github.com/chriso/klein.php + * @link https://github.com/klein/klein.php * @license MIT */ @@ -400,7 +400,7 @@ public function userAgent() */ public function uri() { - return $this->server->get('REQUEST_URI', '/'); + return urldecode($this->server->get('REQUEST_URI', '/')); } /**