Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace preg_match to strpos() while defining a temporary directory #326

Merged
merged 1 commit into from
Jun 6, 2021

Commits on Jun 6, 2021

  1. Check that the path to the temporary directory is in the open_basedir…

    … list using `strpos` instead of a regular expression
    
    This also fixes the problem with rarely used paths like "/foo/bar#baz:/tmp", since # character is not escaped by preg_quote until PHP 7.3 (https://bugs.php.net/bug.php?id=75355)
    StudioMaX committed Jun 6, 2021
    Configuration menu
    Copy the full SHA
    738275f View commit details
    Browse the repository at this point in the history