Skip to content

Commit 546a7b1

Browse files
committed
Fix user URIs.
1 parent 50bc1d5 commit 546a7b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scheduler/ipp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,9 +1561,9 @@ add_job(cupsd_client_t *con, /* I - Client connection */
15611561
}
15621562

15631563
if (con->email[0])
1564-
ippAddStringf(job->attrs, IPP_TAG_JOB, IPP_TAG_URI, "job-originating-user-uri", NULL, "mailto:", con->email);
1564+
ippAddStringf(job->attrs, IPP_TAG_JOB, IPP_TAG_URI, "job-originating-user-uri", NULL, "mailto:%s", con->email);
15651565
else
1566-
ippAddStringf(job->attrs, IPP_TAG_JOB, IPP_TAG_URI, "job-originating-user-uri", NULL, "urn:sub:", con->username);
1566+
ippAddStringf(job->attrs, IPP_TAG_JOB, IPP_TAG_URI, "job-originating-user-uri", NULL, "urn:sub:%s", con->username);
15671567

15681568
if (con->username[0] || auth_info)
15691569
{

0 commit comments

Comments
 (0)