You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2021/05/04 16:00:41 UTC
[Bug 65287] New: balance-manager app produces bad html - no space
between attributes
https://bz.apache.org/bugzilla/show_bug.cgi?id=65287
Bug ID: 65287
Summary: balance-manager app produces bad html - no space
between attributes
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_proxy_balancer
Assignee: bugs@httpd.apache.org
Reporter: utoddl@email.unc.edu
Target Milestone: ---
The internal balance-manager app produces HTML with no space between a couple
of attributes. This occurs in 4 lines in modules/proxy/mod_proxy_balancer.c
starting around line (current) line 1804.
Currently:
ap_rprintf(r, "<tr><td>Interval (ms)</td><td><input name='w_hi' id='w_hi'
type='text'"
"value='%" APR_TIME_T_FMT "'></td></tr>\n",
apr_time_as_msec(wsel->s->interval));
ap_rprintf(r, "<tr><td>Passes trigger</td><td><input name='w_hp' id='w_hp'
type='text'"
"value='%d'></td></tr>\n", wsel->s->passes);
ap_rprintf(r, "<tr><td>Fails trigger)</td><td><input name='w_hf' id='w_hf'
type='text'"
"value='%d'></td></tr>\n", wsel->s->fails);
ap_rprintf(r, "<tr><td>HC uri</td><td><input name='w_hu' id='w_hu' type='text'"
"value=\"%s\"></td></tr>\n", ap_escape_html(r->pool,
wsel->s->hcuri));
The trailing "type='text'" bumps into the next lines' leading "value=".
Suggested fix (which also removes some unneeded single quotes) adds a space
after type=text:
ap_rprintf(r, "<tr><td>Interval (ms)</td><td><input name=w_hi id=w_hi type=text
"
"value='%" APR_TIME_T_FMT "'></td></tr>\n",
apr_time_as_msec(wsel->s->interval));
ap_rprintf(r, "<tr><td>Passes trigger</td><td><input name=w_hp id=w_hp
type=text "
"value='%d'></td></tr>\n", wsel->s->passes);
ap_rprintf(r, "<tr><td>Fails trigger)</td><td><input name=w_hf id=w_hf
type=text "
"value='%d'></td></tr>\n", wsel->s->fails);
ap_rprintf(r, "<tr><td>HC uri</td><td><input name=w_hu id=w_hu type=text "
"value=\"%s\"></td></tr>\n", ap_escape_html(r->pool,
wsel->s->hcuri));
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 65287] balance-manager app produces bad html - no space between
attributes
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65287
Christophe JAILLET <ch...@wanadoo.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Christophe JAILLET <ch...@wanadoo.fr> ---
Hi,
thx for the feed back. Applied on trunk : r1889494.
I've left the '', because up to now, the 2.4.x branch generates some 3.2 HTML
code and '_' in CDATA is not allowed there.
(even if I agree that 3.2 is really out-dated and that any recent browser would
certainly not even notice some missing ' here)
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org