Skip to content

Commit

Permalink
QDir: use .html link to an RFC
Browse files Browse the repository at this point in the history
Change-Id: I7a8ccd149b706e7822011cb40d86bd977bddabbe
Reviewed-by: Thiago Macieira <[email protected]>
  • Loading branch information
ahmadsamir committed Sep 20, 2024
1 parent 90ed330 commit 1c9a785
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/corelib/io/qdir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2207,9 +2207,9 @@ bool QDir::match(const QString &filter, const QString &fileName)
This method is shared with QUrl, so it doesn't deal with QDir::separator(),
nor does it remove the trailing slash, if any.
When dealing with URLs, we are following section 5.2.4 (Remove dot
segments) from http://www.ietf.org/rfc/rfc3986.txt. URL mode differs from
from local path mode in these ways:
When dealing with URLs, we are following the "Remove dot segments"
algorithm from https://www.ietf.org/rfc/rfc3986.html#section-5.2.4
URL mode differs from local path mode in these ways:
1) it can set *path to empty ("." becomes "")
2) directory path outputs end in / ("a/.." becomes "a/" instead of "a")
3) a sequence of "//" is treated as multiple path levels ("a/b//.." becomes
Expand Down

0 comments on commit 1c9a785

Please sign in to comment.