1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-28 08:12:42 +01:00

Base64 test against ajax url added.

This commit is contained in:
Cameron 2019-01-07 17:04:02 -08:00
parent 960d219766
commit 2e60a2bd31

View File

@ -805,13 +805,35 @@
$res = null;
$this->assertTrue($res);
}
*/
public function testBase64DecodeOnAjaxURL()
{
$query = "mode=main&iframe=1&action=info&src=aWQ9ODgzJnVybD1odHRwcyUzQSUyRiUyRmUxMDcub3JnJTJGZTEwN19wbHVnaW5zJTJGYWRkb25zJTJGYWRkb25zLnBocCUzRmlkJTNEODgzJTI2YW1wJTNCbW9kYWwlM0QxJm1vZGU9YWRkb24mcHJpY2U9";
$result = base64_decode($query, true);
$this->assertFalse($result); // correct result is 'false'.
}
public function testFilter_request()
{
$res = null;
$this->assertTrue($res);
}
// define('e_DEBUG', true);
// $_SERVER['QUEST_STRING'] = "mode=main&iframe=1&action=info&src=aWQ9ODgzJnVybD1odHRwcyUzQSUyRiUyRmUxMDcub3JnJTJGZTEwN19wbHVnaW5zJTJGYWRkb25zJTJGYWRkb25zLnBocCUzRmlkJTNEODgzJTI2YW1wJTNCbW9kYWwlM0QxJm1vZGU9YWRkb24mcHJpY2U9";
//$result = $this->e107::filter_request($test,'QUERY_STRING','_SERVER');
// $this->e107->prepare_request();
// var_dump($_SERVER['QUEST_STRING']);
// $res = null;
// $this->assertTrue($res);
}
/*
public function testSet_base_path()
{
$res = null;