bugGNU Wget - Bugs: bug #50514, Convert Links touching embedded...

 
 

bug #50514: Convert Links touching embedded Javascript

Submitted by:  Ages Ayemtwo <ages2500>
Submitted on:  Sat 11 Mar 2017 07:34:12 PM UTC  
 
Category: Program LogicSeverity: 3 - Normal
Priority: 5 - NormalStatus: Duplicate
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Open
Release: 1.18Operating System: GNU/Linux
Reproducibility: Every TimeFixed Release: None
Planned Release: NoneRegression: No
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.

 

Mon 13 Mar 2017 09:13:55 AM UTC, comment #1:

Duplicate of #45796

This is a good starter for Wget newbies:
Should be easily fixed in src/html-url.c
Removing all occurrences of TAG_SCRIPT should do it.
A test case would be appreciated.

Wget2 has a test case for skipping <script> contents.

Tim Ruehsen <rockdaboot>
Project Administrator
Sat 11 Mar 2017 07:34:12 PM UTC, original submission:

The convert links process, and maybe recursive retrieval process are touching embedded javascript code and mangling the code up a bit. Historically, I believe wget stayed away from touching javascript.

I attempt to grab the following page using:

The original source code includes the following line:

After wget converts links, the line reads as:

Ideally this line should be left as is, untouched.

Tested on wget v1.16 custom compiled from savanna source, on GNU/Linux Debian 7, and package install of wget v1.18 on Cygwin.

Ages Ayemtwo <ages2500>

 

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

Attach File(s):
   
   
Comment:
   

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 rockdaboot (Posted a comment)
  • -unavailable- added by ages2500 (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 13 Mar 2017 09:13:55 AM UTCrockdabootStatusNone=>Duplicate

    Back to the top


    Powered by Savane 3.1-cleanup1