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

Uninitialized string offset: 0 in ./libraries/joomla/application/web.php #17979

Closed
Quadratica opened this issue Sep 18, 2017 · 0 comments
Closed

Comments

@Quadratica
Copy link

I propose this simple fix.

web.php, Line 520

NOW

// We just need the prefix since we have a path relative to the root.
if ($url[0] == '/')
{
$url = $prefix . $url;
}

AFTER

// We just need the prefix since we have a path relative to the root.
if( isset($url[0]) && ($url[0] == '/') )
{
$url = $prefix . $url;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants