Protected angle brackets (<,>) in description.txt files when

they are converted to html.
This commit is contained in:
Geert-Jan Giezeman 1999-03-03 16:16:32 +00:00
parent 3cfc658768
commit ab0fc6fa80
1 changed files with 7 additions and 0 deletions

View File

@ -261,6 +261,13 @@ sub check_package($)
if ($word_count > 50) {
log_msg "WARNING: File description.txt contains more than 50 words!";
}
my $rc;
$rc = system("sed -e 's/</\\&lt;/g' -e 's/>/\\&gt;/g' < description.txt > descr");
if ($rc == 0) {
rename 'descr', 'description.txt';
} else {
unlink 'descr';
}
}
# if ( ! -f 'changes.txt' ) {
# log_msg "WARNING: File changes.txt is missing!";