Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
e963714d
Commit
e963714d
authored
17 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
#1 fixed --data-urlencode when no = or @ was used
#2 extended the user-agent buffer since I hit the 128 byte boundary!
parent
dc11239f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main.c
+4
-2
4 additions, 2 deletions
src/main.c
with
4 additions
and
2 deletions
src/main.c
+
4
−
2
View file @
e963714d
...
...
@@ -2062,13 +2062,15 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
size_t
nlen
;
char
is_file
;
if
(
!
p
)
/* there was no '=' letter, check for a '@' instead */
p
=
strchr
(
nextarg
,
'@'
);
if
(
p
)
{
nlen
=
p
-
nextarg
;
/* length of the name part */
is_file
=
*
p
++
;
/* pass the separator */
}
else
{
nlen
=
is_file
=
-
1
;
/* neither @ nor =, so no name and it isn't a file */
nlen
=
is_file
=
0
;
p
=
nextarg
;
}
if
(
'@'
==
is_file
)
{
...
...
@@ -3606,7 +3608,7 @@ static int
operate
(
struct
Configurable
*
config
,
int
argc
,
argv_item_t
argv
[])
{
char
errorbuffer
[
CURL_ERROR_SIZE
];
char
useragent
[
128
];
/* buah, we don't want a larger default user agent */
char
useragent
[
256
];
/* buah, we don't want a larger default user agent */
struct
ProgressData
progressbar
;
struct
getout
*
urlnode
;
struct
getout
*
nextnode
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment