]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Update usage and localized message about the URL to use for secure access.
authorMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 24 Jan 2019 17:04:57 +0000 (12:04 -0500)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 24 Jan 2019 17:04:57 +0000 (12:04 -0500)
scheduler/client.c
systemv/lpadmin.c

index cfb0e1b9bd0869be444563da88cb41dde5055061..c6494724889bf422fc84229b6b5ce55746f95a16 100644 (file)
@@ -1986,18 +1986,9 @@ cupsdSendError(cupsd_client_t *con,      /* I - Connection */
     {
       text = urltext;
 
-      snprintf(urltext, sizeof(urltext),
-               _cupsLangString(con->language,
-                               _("You must access this page using the URL "
-                                "<A HREF=\"https://%s:%d%s\">"
-                                "https://%s:%d%s</A>.")),
-               con->servername, con->serverport, con->uri,
-              con->servername, con->serverport, con->uri);
-
-      snprintf(redirect, sizeof(redirect),
-               "<META HTTP-EQUIV=\"Refresh\" "
-              "CONTENT=\"3;URL=https://%s:%d%s\">\n",
-              con->servername, con->serverport, con->uri);
+      snprintf(urltext, sizeof(urltext), _cupsLangString(con->language, _("You must access this page using the URL https://%s:%d%s.")), con->servername, con->serverport, con->uri);
+
+      snprintf(redirect, sizeof(redirect), "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"3;URL=https://%s:%d%s\">\n", con->servername, con->serverport, con->uri);
     }
     else if (code == HTTP_STATUS_CUPS_WEBIF_DISABLED)
       text = _cupsLangString(con->language,
index 4a8bc26c3eb1ebab16aee5bb545690cd98ebec47..709949a629f5d8d847806af09382c8c44b8221e8 100644 (file)
@@ -669,20 +669,7 @@ main(int  argc,                            /* I - Number of command-line arguments */
     unlink(evefile);
 
   if (printer == NULL)
-  {
-    _cupsLangPuts(stdout,
-                 _("Usage:\n"
-                   "\n"
-                   "    lpadmin [-h server] -d destination\n"
-                   "    lpadmin [-h server] -x destination\n"
-                   "    lpadmin [-h server] -p printer [-c add-class] "
-                   "[-i interface] [-m model]\n"
-                   "                       [-r remove-class] [-v device] "
-                   "[-D description]\n"
-                   "                       [-P ppd-file] [-o name=value]\n"
-                   "                       [-u allow:user,user] "
-                   "[-u deny:user,user]"));
-  }
+    usage();
 
   if (http)
     httpClose(http);