From 8a3f8595569a920cf2fa811704dec97ae31be15d Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Mon, 15 Jun 2020 15:48:40 +0200 Subject: Revert "Decode directory separators in source URLs" This reverts commit 7ec30c51b287159377761338fe6d3b48706d74ee. We don't want to half-decode directory separators on assignment. This just introduces inconsistency down the line. [ChangeLog][QtQml][Important Behavior Changes] Percent-encoded directory separators in URLs are not automatically decoded on assignment to url properties anymore. This was obviously not a good idea to begin with. Fixes: QTBUG-81244 Change-Id: I1938abbe8aada88beff0d628397674255e8b2472 Reviewed-by: Andy Shaw Reviewed-by: Fabian Kosmale --- src/qml/doc/src/qmllanguageref/typesystem/basictypes.qdoc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/qml/doc/src') diff --git a/src/qml/doc/src/qmllanguageref/typesystem/basictypes.qdoc b/src/qml/doc/src/qmllanguageref/typesystem/basictypes.qdoc index 1040baedc0..f35a56858b 100644 --- a/src/qml/doc/src/qmllanguageref/typesystem/basictypes.qdoc +++ b/src/qml/doc/src/qmllanguageref/typesystem/basictypes.qdoc @@ -295,9 +295,7 @@ property is only invoked when the property is reassigned to a different object v Additionally, URLs may contain encoded characters using the 'percent-encoding' scheme specified by \l {http://tools.ietf.org/html/rfc3986}{RFC 3986}. These characters will be preserved within properties of type \c url, to allow QML code to - construct precise URL values. An exception to this rule is the preemptive - decoding of directory-separator characters (\c '/') - these characters are decoded - to allow the URL to be correctly classified. + construct precise URL values. For example, a local file containing a '#' character, which would normally be interpreted as the beginning of the URL 'fragment' element, can be accessed by -- cgit v1.2.3