else {
$irv = &install_usermin_module($mtemp, 1, 0);
if (!ref($irv)) {
+ $irv =~ s/<[^>]*>//g;
$irv .= &text('update_failed', $irv)."\n\n";
}
else {
}
# text(message, [substitute]+)
+# Returns a translated message from %text, but with $1, $2, etc.. replaced with the
+# substitute parameters.
sub text
{
local $rv = $text{$_[0]};
$u->[4]."\n\n";
}
else {
- # Actually do the update .. XXX remove html from comments
+ # Actually do the update ..
local (@mdescs, @mdirs, @msizes);
$rv .= &text('update_mok', $u->[0], $u->[1])."\n".
($info{'longdesc'} ? "$text{'update_fixes'} : " : "").
$irv = &install_webmin_module($mtemp, 1, 0,
[ "admin", "root" ]);
if (!ref($irv)) {
+ $irv =~ s/<[^>]*>//g;
$rv .= &text('update_failed', $irv)."\n\n";
}
else {