Open Aurelienazerty opened 1 year ago
@Dark1z
I don't have this with phpbb 3.3.10 and php 8.2.9, what do i have to do to see those errors?
It's when you put "Activate the Zero duplicate" to yes.
I put a var_dump to see what's appened on line 122 in seo.php
var_dump($url, $url_parts, $url_parts === false, empty($url_parts['scheme']), !in_array($url_parts['scheme'], $allowed_protocols));
It print :
string(47) "./../../forum/viewtopic.php?f=15&t=3196&start=0" array(2) { ["path"]=> string(27) "./../../forum/viewtopic.php" ["query"]=> string(19) "f=15&t=3196&start=0" } bool(false) bool(true) bool(true)
As you can see, the $url is relative, so there is no scheme, we go in the if :
if ($url_parts === false || empty($url_parts['scheme']) || !in_array($url_parts['scheme'], $allowed_protocols))
{
send_status_line(400, 'Bad Request');
trigger_error('INSECURE_REDIRECT', E_USER_ERROR);
}
I don't know why it came with php 8.x I didn't have this problem with php 7.4 and I didn't made any code change.
USU seems not compatible with PHP 8
In index I've got lot of :
And going to topic make error :