mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-26 01:26:00 +03:00
[GH-ISSUE #190] Improper quoting of wget useragent flag #3151
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#3151
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @n0ncetonic on GitHub (Mar 22, 2019).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/190
Describe the bug
wget appears to have a slight typo in the command generation in specific in dealing with the
--user-agentflag.Steps to reproduce
I observed the following when a page returned a 404 response (not a fault of ArchiveBox, the page was legitimately not found). Any method of running ArchiveBox that would display the generated output for commands would show this as well
Screenshots or log output
The wget command outputs the following as part of its run flags.
"--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36".Is this done intentionally or is the intended functionality to output
--user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36"?Software versions
0075daa@n0ncetonic commented on GitHub (Mar 22, 2019):
This appears to be replicated in the chrome flags as well
/Applications/Chromium.app/Contents/MacOS/Chromium --headless --disable-web-security --ignore-certificate-errors "--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36" --window-size=1440,900 --timeout=40000 "--user-data-dir=/Users/user/Library/Application Support/Chromium" --dump-dom https://url.com@pirate commented on GitHub (Mar 22, 2019):
It's intentional and harmless. That's only how it's printed for the user to copy, not actually how it's run.
When being run it's quoted properly by the system because we use
subprocess.run: