Loading CHANGES +3 −0 Original line number Diff line number Diff line Loading @@ -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 Loading src/writeout.c +6 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2005, 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 Loading Loading @@ -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 == Loading Loading @@ -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; } Loading Loading
CHANGES +3 −0 Original line number Diff line number Diff line Loading @@ -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 Loading
src/writeout.c +6 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2005, 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 Loading Loading @@ -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 == Loading Loading @@ -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; } Loading