From 4f564b9e2ae65b6c96a32acb659f1cdba44917c8 Mon Sep 17 00:00:00 2001 From: Joe cooper Date: Tue, 30 May 2017 20:36:12 -0500 Subject: [PATCH 1/2] Use escaped ampersand --- ui-lib.pl | 4 ++-- web-lib-funcs.pl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui-lib.pl b/ui-lib.pl index 7ac4fde17..c6c0af6f2 100755 --- a/ui-lib.pl +++ b/ui-lib.pl @@ -1442,7 +1442,7 @@ generated by ui_buttons_row. Some example code : sub ui_buttons_start { return &theme_ui_buttons_start(@_) if (defined(&theme_ui_buttons_start)); -return "\n"; +return "
\n
"; } =head2 ui_buttons_end @@ -1453,7 +1453,7 @@ Returns HTML for the end of a block started by ui_buttons_start. sub ui_buttons_end { return &theme_ui_buttons_end(@_) if (defined(&theme_ui_buttons_end)); -return "
\n"; +return "\n"; } =head2 ui_buttons_row(script, button-label, description, [hiddens], [after-submit], [before-submit]) diff --git a/web-lib-funcs.pl b/web-lib-funcs.pl index 8dbf649a0..9648af860 100755 --- a/web-lib-funcs.pl +++ b/web-lib-funcs.pl @@ -7258,8 +7258,8 @@ sub help_search_link if (&foreign_available("man") && !$tconfig{'nosearch'}) { my $for = &urlize(shift(@_)); return "". + join("&", map { "section=$_" } @_)."&". + "for=$for&exact=1&check=".&get_module_name()."'>". $text{'helpsearch'}."\n"; } else { From f1c000d1e51416231622e79ecf75978f7949e055 Mon Sep 17 00:00:00 2001 From: Joe cooper Date: Tue, 30 May 2017 21:12:53 -0500 Subject: [PATCH 2/2] When in doubt, nest more tables --- ui-lib.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui-lib.pl b/ui-lib.pl index c6c0af6f2..532dbedc3 100755 --- a/ui-lib.pl +++ b/ui-lib.pl @@ -1453,7 +1453,7 @@ Returns HTML for the end of a block started by ui_buttons_start. sub ui_buttons_end { return &theme_ui_buttons_end(@_) if (defined(&theme_ui_buttons_end)); -return "\n"; +return "\n"; } =head2 ui_buttons_row(script, button-label, description, [hiddens], [after-submit], [before-submit]) @@ -1483,12 +1483,13 @@ if (ref($hiddens)) { } return "
\n". $hiddens. + "". " ". "\n". "\n". + $desc."
". ($before ? $before." " : ""). &ui_submit($label).($after ? " ".$after : "")."". - $desc."
\n". "
\n"; }