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
e8635044
Commit
e8635044
authored
19 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
Now curl warns if an unknown variable is used in the -w/--writeout argument.
parent
56dea0ac
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGES
+3
-0
3 additions, 0 deletions
CHANGES
src/writeout.c
+6
-1
6 additions, 1 deletion
src/writeout.c
with
9 additions
and
1 deletion
CHANGES
+
3
−
0
View file @
e8635044
...
...
@@ -7,6 +7,9 @@
Changelog
Daniel (6 September 2005)
- Now curl warns if an unknown variable is used in the -w/--writeout argument.
Daniel (4 September 2005)
- I applied Nicolas François' man page patch he posted to the Debian bug
tracker. It corrected two lines that started with apostrophes, which isn't
...
...
This diff is collapsed.
Click to expand it.
src/writeout.c
+
6
−
1
View file @
e8635044
...
...
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 200
4
, Daniel Stenberg, <daniel@haxx.se>, et al.
* Copyright (C) 1998 - 200
5
, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
...
...
@@ -112,11 +112,13 @@ void ourWriteOut(CURL *curl, char *writeinfo)
char
keepit
;
int
i
;
if
((
'{'
==
ptr
[
1
])
&&
(
end
=
strchr
(
ptr
,
'}'
)))
{
bool
match
=
FALSE
;
ptr
+=
2
;
/* pass the % and the { */
keepit
=*
end
;
*
end
=
0
;
/* zero terminate */
for
(
i
=
0
;
replacements
[
i
].
name
;
i
++
)
{
if
(
curl_strequal
(
ptr
,
replacements
[
i
].
name
))
{
match
=
TRUE
;
switch
(
replacements
[
i
].
id
)
{
case
VAR_EFFECTIVE_URL
:
if
((
CURLE_OK
==
...
...
@@ -217,6 +219,9 @@ void ourWriteOut(CURL *curl, char *writeinfo)
break
;
}
}
if
(
!
match
)
{
fprintf
(
stderr
,
"curl: unknown --writeout variable: '%s'
\n
"
,
ptr
);
}
ptr
=
end
+
1
;
/* pass the end */
*
end
=
keepit
;
}
...
...
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