Gossamer Forum
Home : Products : DBMan : Installation :

Delimiter problem - still not working...

Quote Reply
Delimiter problem - still not working...
I have tried to add what JPD suggested:

----------
There should be something you could add to the validate_record subroutine in db.cgi
to prevent this. Something like:

after

else { # else entry is not null.
($db_valid_types{$col} && !($in{$col} =~ /$db_valid_types{$col}/)) and
push(@input_err, "$col (Invalid format)"); # but has failed validation.
}

add

if ($in{$col}) =~ /$db_delim/) {
push(@input_err, "$col (Includes a disallowed character -- $db_delim)");
}
-------------------

However it returns an internal server error:
Premature end of script headers

Since I don't know much about perl, I couldn't figure out what is wrong.

Anyway, the problem with 2-char delimiter
is solved, thanks to JPD.

kwli