summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2019-01-24 12:04:57 -0500
committerMichael R Sweet <michael.r.sweet@gmail.com>2019-01-24 12:04:57 -0500
commit7cc71486c92af6fa25f98848ea25f3f6413a8273 (patch)
tree8bf19e8f767b01964ce561bc49635680e3040232
parent0913610bcdf4d8485898af14661a6d4c896388ad (diff)
downloadcups-7cc71486c92af6fa25f98848ea25f3f6413a8273.tar.gz
Update usage and localized message about the URL to use for secure access.
-rw-r--r--scheduler/client.c15
-rw-r--r--systemv/lpadmin.c15
2 files changed, 4 insertions, 26 deletions
diff --git a/scheduler/client.c b/scheduler/client.c
index cfb0e1b9b..c64947248 100644
--- a/scheduler/client.c
+++ b/scheduler/client.c
@@ -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,
diff --git a/systemv/lpadmin.c b/systemv/lpadmin.c
index 4a8bc26c3..709949a62 100644
--- a/systemv/lpadmin.c
+++ b/systemv/lpadmin.c
@@ -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);