This commit is contained in:
Jamie Cameron
2016-09-16 21:15:54 -07:00
parent c2657aab8a
commit 003424a60e
2 changed files with 2 additions and 2 deletions

View File

@@ -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]).

View File

@@ -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'}) {