mirror of
https://github.com/boostorg/website.git
synced 2026-01-19 16:52:15 +00:00
Trying to view documentation with an invalid path would cause an error when it encoded the path in the 404 error page, so rather than fix that case, just use a safer function everywhere. Although maybe should be a bit more cautious about displaying user supplied text?
10 lines
231 B
PHP
10 lines
231 B
PHP
<?php
|
||
|
||
use Tester\Assert;
|
||
|
||
require_once(__DIR__.'/../config/bootstrap.php');
|
||
require_once(__DIR__.'/../../boost.php');
|
||
|
||
Assert::same('<test>', html_encode('<test>'));
|
||
Assert::same('<27><>', html_encode(urldecode('%A0%A0')));
|