diff options
author | Stefan Fritsch <sf@apache.org> | 2012-07-15 23:14:00 +0200 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2012-07-15 23:14:00 +0200 |
commit | 8c960a8c15d9915729125c513feef62cf867d8b9 (patch) | |
tree | ae3eb03a839d9aeed9ff800a7310aac2f9a150ef /modules/test | |
parent | Remove some checking for out-of-mem conditions that cannot be hit (diff) | |
download | apache2-8c960a8c15d9915729125c513feef62cf867d8b9.tar.xz apache2-8c960a8c15d9915729125c513feef62cf867d8b9.zip |
Various code clean up
Submitted by: Christophe JAILLET <christophe jaillet wanadoo fr>
PR: 52893
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1361801 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/test')
-rw-r--r-- | modules/test/mod_policy.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/test/mod_policy.c b/modules/test/mod_policy.c index d4830aa768..473b31c624 100644 --- a/modules/test/mod_policy.c +++ b/modules/test/mod_policy.c @@ -162,11 +162,10 @@ static void handle_policy(request_rec *r, policy_result result, message, r->uri); apr_table_addn(r->err_headers_out, "Warning", apr_psprintf(r->pool, "299 %s \"Rejected: %s\"", ap_get_server_name(r), message)); - apr_table_setn( - r->notes, "error-notes", - apr_pstrcat(r->pool, url ? apr_pstrcat(r->pool, "<a href=\"", - url, "\">", NULL) : "", message, url ? "</a>" : "", - NULL)); + apr_table_setn(r->notes, "error-notes", + url ? apr_pstrcat(r->pool, "<a href=\"", url, "\">", + message, "</a>", NULL) + : message); apr_brigade_cleanup(bb); e = ap_bucket_error_create(status, NULL, r->pool, |