1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:07:45 +00:00

Ladybird: Don't rewrite file:// URLs to HTTP

This commit is contained in:
Andreas Kling 2022-07-19 20:08:02 +02:00 committed by Andrew Kaster
parent c216e714c7
commit 1b682e4b2c

View file

@ -75,7 +75,7 @@ Tab::Tab(QMainWindow* window)
void Tab::navigate(QString url)
{
if (!url.startsWith("http://", Qt::CaseInsensitive) && !url.startsWith("https://", Qt::CaseInsensitive))
if (!url.startsWith("http://", Qt::CaseInsensitive) && !url.startsWith("https://", Qt::CaseInsensitive) && !url.startsWith("file://", Qt::CaseInsensitive))
url = "http://" + url;
view().load(url.toUtf8().data());
}