4dcaefa1fe
Changelist since 1.370 is too large to be included in this message so please consult: http://www.webmin.com/changes-1.380.html http://www.webmin.com/changes-1.390.html http://www.webmin.com/changes-1.400.html http://www.webmin.com/changes-1.410.html http://www.webmin.com/changes-1.420.html http://www.webmin.com/changes-1.430.html http://www.webmin.com/changes-1.440.html http://www.webmin.com/changes-1.450.html http://www.webmin.com/changes-1.460.html http://www.webmin.com/changes-1.470.html
30 lines
1.2 KiB
Text
30 lines
1.2 KiB
Text
--- software/search.cgi.orig 2009-03-18 07:30:27.000000000 +0200
|
|
+++ software/search.cgi 2009-04-09 12:27:58.000000000 +0300
|
|
@@ -34,7 +34,7 @@
|
|
if (@match) {
|
|
@match = sort { lc($packages{$a,'name'}) cmp lc($packages{$b,'name'}) }
|
|
@match;
|
|
- print "<b>",&text('search_match', "<tt>$s</tt>"),"</b><p>\n";
|
|
+ print "<b>",&text('search_match', "<tt>" . &html_escape($s) . "</tt>"),"</b><p>\n";
|
|
print &ui_form_start("delete_packs.cgi", "post");
|
|
print &ui_hidden("search", $in{'search'});
|
|
@tds = ( "width=5" );
|
|
@@ -47,7 +47,8 @@
|
|
$text{'search_desc'} ], 100, 0, \@tds);
|
|
foreach $i (@match) {
|
|
local @cols;
|
|
- push(@cols, "<a href=\"edit_pack.cgi?search=$s&package=".
|
|
+ push(@cols, "<a href=\"edit_pack.cgi?search=" .
|
|
+ &urlize($s) . "&package=".
|
|
&urlize($packages{$i,'name'})."&version=".
|
|
&urlize($packages{$i,'version'})."\">".&html_escape(
|
|
$packages{$i,'name'}.($packages{$i,'version'} ?
|
|
@@ -69,7 +70,7 @@
|
|
print &ui_form_end([ [ undef, $text{'search_delete'} ] ]);
|
|
}
|
|
else {
|
|
- print "<b>",&text('search_nomatch', "<tt>$s</tt>"),"</b><p>\n";
|
|
+ print "<b>",&text('search_nomatch', "<tt>" . &html_escape($s) . "</tt>"),"</b><p>\n";
|
|
}
|
|
|
|
&ui_print_footer("", $text{'index_return'});
|