mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Support new format comments https://sourceforge.net/p/webadmin/bugs/4818/
This commit is contained in:
@@ -55,7 +55,7 @@ if (@table) {
|
||||
@t = @{$table[$i]};
|
||||
local @cols;
|
||||
local @tds;
|
||||
if ($t[0] eq "COMMENT") {
|
||||
if ($t[0] =~ /\??COMMENT/) {
|
||||
# Special case - a comment line
|
||||
push(@cols, "<a href='editcmt.cgi?table=$in{'table'}&".
|
||||
"idx=$i'><i>".join(" ", @t[1..$#t]).
|
||||
|
||||
@@ -15,7 +15,7 @@ if ($in{'delete'}) {
|
||||
else {
|
||||
# Validate inputs
|
||||
$in{'msg'} =~ /\S/ || &error($text{'comment_enone'});
|
||||
$line = "COMMENT $in{'msg'}";
|
||||
$line = (&version_atleast(4, 5, 11) ? "?" : "") . "COMMENT $in{'msg'}";
|
||||
|
||||
# Update or add
|
||||
if ($in{'new'}) {
|
||||
|
||||
Reference in New Issue
Block a user