]> sjero.net Git - wget/blobdiff - src/init.c
[svn] Don't complain about "unknown authentication scheme" if the scheme
[wget] / src / init.c
index b70a7c6efcd1de88400c6c9eeabf593f2c833089..6834c283b45fdf9d638c456d38fcbb1138dda314 100644 (file)
@@ -1292,9 +1292,8 @@ cmd_spec_timeout (const char *com, const char *val, void *place_ignored)
 static int
 cmd_spec_useragent (const char *com, const char *val, void *place_ignored)
 {
-  /* Just check for empty string and newline, so we don't throw total
-     junk to the server.  */
-  if (!*val || strchr (val, '\n'))
+  /* Disallow embedded newlines.  */
+  if (strchr (val, '\n'))
     {
       fprintf (stderr, _("%s: %s: Invalid value `%s'.\n"),
               exec_name, com, val);