From: mike Date: Thu, 19 Aug 2004 15:33:02 +0000 (+0000) Subject: Mirror 1.1.x change. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e060a56772f253f8163c2b0ff89665defcd40a64;p=thirdparty%2Fcups.git Mirror 1.1.x change. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/branches/branch-1.2@4379 7a7537e8-13f0-0310-91df-b6672ffda945 --- diff --git a/scheduler/client.c b/scheduler/client.c index 44fad93ad..14b0c4e14 100644 --- a/scheduler/client.c +++ b/scheduler/client.c @@ -1,5 +1,5 @@ /* - * "$Id: client.c,v 1.91.2.91 2004/08/06 13:57:05 mike Exp $" + * "$Id: client.c,v 1.91.2.92 2004/08/19 15:33:02 mike Exp $" * * Client routines for the Common UNIX Printing System (CUPS) scheduler. * @@ -1308,13 +1308,12 @@ ReadClient(client_t *con) /* I - Client to read from */ else { SetStringf(&con->command, "%s/cgi-bin/jobs.cgi", ServerBin); - - if (con->uri[5] == '/') - SetString(&con->options, con->uri + 6); - else - SetString(&con->options, con->uri + 5); + SetString(&con->options, con->uri + 5); } + if (con->options[0] == '/') + cups_strcpy(con->options, con->options + 1); + if (!SendCommand(con, con->command, con->options)) { if (!SendError(con, HTTP_NOT_FOUND)) @@ -1449,7 +1448,11 @@ ReadClient(client_t *con) /* I - Client to read from */ if (strncmp(con->uri, "/admin", 6) == 0) { SetStringf(&con->command, "%s/cgi-bin/admin.cgi", ServerBin); - SetString(&con->options, con->uri + 6); + + if ((ptr = strchr(con->uri + 6, '?')) != NULL) + SetStringf(&con->options, "admin%s", ptr); + else + SetString(&con->options, "admin"); } else if (strncmp(con->uri, "/printers", 9) == 0) { @@ -3378,5 +3381,5 @@ CDSAWriteFunc(SSLConnectionRef connection, /* I - SSL/TLS connection */ /* - * End of "$Id: client.c,v 1.91.2.91 2004/08/06 13:57:05 mike Exp $". + * End of "$Id: client.c,v 1.91.2.92 2004/08/19 15:33:02 mike Exp $". */