https://bugs.kde.org/show_bug.cgi?id=418711

            Bug ID: 418711
           Summary: URL special chars such as '#' not handle properly.
           Product: frameworks-kio
           Version: 5.67.0
          Platform: openSUSE RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Open/save dialogs
          Assignee: fa...@kde.org
          Reporter: fab...@ritter-vogt.de
                CC: kdelibs-b...@kde.org
  Target Milestone: ---

1. kdialog --getsaveurl (or --getsavefilename)
2. Enter "foo#bar" in the file name field
3. Navigate by clicking on a folder, upwards or something like that
4. The filename changes to "foo%23bar", then "foo%2523bar", then
"foo%252523bar" and so on

This is caused by treating the input to KComboBox as plain string representing
a local path in KFileWidgetPrivate::locationEditCurrentText
(QDir::fromNativeSeparators(locationEdit->currentText());), but writing a
proper URL with QUrl::toDisplayString() in KComboBox::changeUrl.

Not sure what to do about that though, as the filename field is supposed to
accept full URLs as well as bare filenames. While the URL "foo#bar" would
represent the filename "foo" (the #fragment doesn't matter), it would be a
valid local filename as-is.

The inconsistency between writing and reading the URL from KComboBox causes
that on each read->write iteration, it's further encoded.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to