Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 371906 Details for
Bug 503672
net-misc/wget: patch to ignore cookie path
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Adds the --ignore-cookie-path option to wget
wget-1.14-ignorecookiepath.patch (text/plain), 2.80 KB, created by
Marcus Schwartz
on 2014-03-06 22:02:46 UTC
(
hide
)
Description:
Adds the --ignore-cookie-path option to wget
Filename:
MIME Type:
Creator:
Marcus Schwartz
Created:
2014-03-06 22:02:46 UTC
Size:
2.80 KB
patch
obsolete
>diff -Naur wget-1.14/src/cookies.c wget-1.14-ignorecookiepath/src/cookies.c >--- wget-1.14/src/cookies.c 2012-05-12 08:18:27.000000000 -0700 >+++ wget-1.14-ignorecookiepath/src/cookies.c 2014-03-06 12:10:59.365665300 -0800 >@@ -706,7 +706,7 @@ > /* no slash in the string -- can this even happen? */ > cookie->path = xstrdup (path); > } >- else >+ else if (!opt.ignorecookiepath) > { > /* The cookie sets its own path; verify that it is legal. */ > if (!check_path_match (cookie->path, path)) >diff -Naur wget-1.14/src/init.c wget-1.14-ignorecookiepath/src/init.c >--- wget-1.14/src/init.c 2012-07-08 02:35:36.000000000 -0700 >+++ wget-1.14-ignorecookiepath/src/init.c 2014-03-06 13:42:44.489772000 -0800 >@@ -194,6 +194,7 @@ > { "httpsproxy", &opt.https_proxy, cmd_string }, > { "httpuser", &opt.http_user, cmd_string }, > { "ignorecase", &opt.ignore_case, cmd_boolean }, >+ { "ignorecookiepath", &opt.ignorecookiepath, cmd_boolean }, > { "ignorelength", &opt.ignore_length, cmd_boolean }, > { "ignoretags", &opt.ignore_tags, cmd_vector }, > { "includedirectories", &opt.includes, cmd_directory_vector }, >diff -Naur wget-1.14/src/main.c wget-1.14-ignorecookiepath/src/main.c >--- wget-1.14/src/main.c 2012-07-07 01:26:21.000000000 -0700 >+++ wget-1.14-ignorecookiepath/src/main.c 2014-03-06 13:38:01.909766500 -0800 >@@ -229,6 +229,7 @@ > { "level", 'l', OPT_VALUE, "reclevel", -1 }, > { "limit-rate", 0, OPT_VALUE, "limitrate", -1 }, > { "load-cookies", 0, OPT_VALUE, "loadcookies", -1 }, >+ { "ignore-cookie-path", 0, OPT_BOOLEAN, "ignorecookiepath", -1}, > { "local-encoding", 0, OPT_VALUE, "localencoding", -1 }, > { "max-redirect", 0, OPT_VALUE, "maxredirect", -1 }, > { "mirror", 'm', OPT_BOOLEAN, "mirror", -1 }, >@@ -606,6 +607,8 @@ > N_("\ > --keep-session-cookies load and save session (non-permanent) cookies.\n"), > N_("\ >+ --ignore-cookie-path accept cookies with an illegal Path.\n"), >+ N_("\ > --post-data=STRING use the POST method; send STRING as the data.\n"), > N_("\ > --post-file=FILE use the POST method; send contents of FILE.\n"), >diff -Naur wget-1.14/src/options.h wget-1.14-ignorecookiepath/src/options.h >--- wget-1.14/src/options.h 2012-06-06 04:42:10.000000000 -0700 >+++ wget-1.14-ignorecookiepath/src/options.h 2014-03-06 13:50:50.005781400 -0800 >@@ -225,6 +225,9 @@ > char *cookies_output; /* file we're saving the cookies to. */ > bool keep_session_cookies; /* whether session cookies should be > saved and loaded. */ >+ bool ignorecookiepath; /* whether to accept cookies with paths that >+ are not a prefix of the request's path, >+ this violates RFC2965. */ > > char *post_data; /* POST query string */ > char *post_file_name; /* File to post */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 503672
: 371906