Skip to content

Commit

Permalink
Concat strings without slash
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Collins committed Mar 12, 2022
1 parent afdbe7a commit cc23ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mod_dims.c
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,7 @@ dims_handle_request(dims_request_rec *d)
request_rec *sub_req = ap_sub_req_lookup_uri(d->image_url, d->r, NULL);

if (d->config->default_image_prefix != NULL) {
d->image_url = apr_psprintf(d->r->pool, "%s/%s", d->config->default_image_prefix, d->image_url);
d->image_url = apr_pstrcat(d->r->pool, d->config->default_image_prefix, d->image_url, NULL);
} else if (sub_req && sub_req->canonical_filename) {
ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, d->r, "Looking up image locally: %s", sub_req->canonical_filename);
d->filename = sub_req->canonical_filename;
Expand Down

0 comments on commit cc23ca6

Please sign in to comment.