mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kdecore: do not prettify the URL in KUrl::pathOrUrl()
here is how to make browsers barf - check the tooltip and where the browser thinks the URL points to: https://ibb.co/cyhwppK Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
ef02376c35
commit
13fdc7b7cd
1 changed files with 2 additions and 5 deletions
|
@ -627,17 +627,14 @@ QString KUrl::pathOrUrl(AdjustPathOption trailing) const
|
|||
if (isLocalFile() && !hasFragment() && !hasQuery()) {
|
||||
return toLocalFile(trailing);
|
||||
}
|
||||
return prettyUrl(trailing);
|
||||
return url(trailing);
|
||||
}
|
||||
|
||||
// used for text/uri-list in the mime data. don't fold this into populateMimeData, it's also needed
|
||||
// by other code like konqdrag
|
||||
QString KUrl::toMimeDataString() const
|
||||
{
|
||||
if (isLocalFile()) {
|
||||
return url();
|
||||
}
|
||||
if (hasPass()) {
|
||||
if (hasPass() && !isLocalFile()) {
|
||||
KUrl safeUrl(*this);
|
||||
safeUrl.setPassword(QString());
|
||||
return safeUrl.url();
|
||||
|
|
Loading…
Add table
Reference in a new issue