test encoding
This commit is contained in:
parent
fed8e43e36
commit
443ba12002
1 changed files with 8 additions and 0 deletions
|
@ -184,5 +184,13 @@ class UtilTest extends TestCase
|
||||||
// niceurl root
|
// niceurl root
|
||||||
$_SERVER["REQUEST_URI"] = "/test/";
|
$_SERVER["REQUEST_URI"] = "/test/";
|
||||||
$this->assertEquals("/", _get_query());
|
$this->assertEquals("/", _get_query());
|
||||||
|
|
||||||
|
// niceurls with encoded slashes
|
||||||
|
$_SERVER["REQUEST_URI"] = "/test/post/list/tasty%2Fcake/1";
|
||||||
|
$this->assertEquals("/post/list/tasty%2Fcake/1", _get_query());
|
||||||
|
|
||||||
|
// query string with encoded slashes
|
||||||
|
$_SERVER["REQUEST_URI"] = "/test/index.php?q=/post/list/tasty%2Fcake/1";
|
||||||
|
$this->assertEquals("/post/list/tasty%2Fcake/1", _get_query());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue