bugGNU Wget - Bugs: bug #33149, --convert-links does not escape ?...


bug #33149: --convert-links does not escape ? character in links

Submitted by:  tot-to <totto>
Submitted on:  Sat 23 Apr 2011 10:13:41 PM UTC  
Category: Program LogicSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Open
Release: 1.12Operating System: GNU/Linux
Reproducibility: Every TimeFixed Release: None
Planned Release: NoneRegression: None
Work Required: NonePatch Included: No

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 28 Aug 2013 01:15:10 AM UTC, comment #2:

This issue is still present in wget 1.141. Thanks to the original submitter for the workaround suggestion.

Alex Lancaster <alexl>
Mon 25 Apr 2011 09:47:47 AM UTC, comment #1:

I'm joining this issue. I think that behaviour should be consistent with no dependency on --restrict-file-names.
I think it compares link and file name and forgets about special characters. So not doing rewrite at all.
Because when it actually do rewriting of links it replaces special chars. For example with -E.

Alexander Zubkov <zubkov>
Sat 23 Apr 2011 10:13:41 PM UTC, original submission:

When I download some site with wget:
wget -r -k http:/mysite.com/
The wget generates file like this:
and changes links in file to appropriate. But browsers suppose the symbols after ? are GET-paramerter, but not a part of file.
If open file with ? in Firefox by open dialog, we will see %3F in address instead of ? Therefore, I believe that wget -k must change ? to %3F in html-code.
The workaround is using option --restrict-file-names=windows. Because ? is not acceptable filename character in this operating system, it will be changed to @ both in filenames and links.

tot-to <totto>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by alexl (Posted a comment)
  • -unavailable- added by zubkov (Posted a comment)
  • -unavailable- added by zubkov
  • -unavailable- added by totto (Submitted the item)

    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 25 Apr 2011 09:47:47 AM UTCzubkovCarbon-Copy-=>Added zubkov

    Back to the top

    Powered by Savane 3.1-cleanup1