Coder Social home page Coder Social logo

USU is not with PHP 8 about usu HOT 4 OPEN

phpbb-seo avatar phpbb-seo commented on August 20, 2024
USU is not with PHP 8

from usu.

Comments (4)

meis2m avatar meis2m commented on August 20, 2024

@Dark1z

from usu.

zetrader avatar zetrader commented on August 20, 2024

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?

from usu.

Aurelienazerty avatar Aurelienazerty commented on August 20, 2024

It's when you put "Activate the Zero duplicate" to yes.

from usu.

Aurelienazerty avatar Aurelienazerty commented on August 20, 2024

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.

from usu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.