mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Allow empty language priority https://github.com/webmin/webmin/issues/608
This commit is contained in:
@@ -45,7 +45,7 @@ return (2, "$text{'mod_negotiation_pri'}",
|
||||
sub save_LanguagePriority
|
||||
{
|
||||
local $rv = &parse_opt("LanguagePriority", '\S', $text{'mod_negotiation_epri'});
|
||||
if ($rv) {
|
||||
if ($rv && @$rv) {
|
||||
$rv->[0] =~ s/^"(.*)"/$1/g;
|
||||
}
|
||||
return $rv;
|
||||
|
||||
Reference in New Issue
Block a user