X-Git-Url: https://git.p6c8.net/selfforum.git/blobdiff_plain/145128187279c4d4b52b8fc9b19f3f3a4d8f95b8..f69abb46fffae25b517a067d1afc532c67fd9ca3:/selfforum-cgi/shared/Encode/Posting.pm diff --git a/selfforum-cgi/shared/Encode/Posting.pm b/selfforum-cgi/shared/Encode/Posting.pm index 76463bc..80c414b 100644 --- a/selfforum-cgi/shared/Encode/Posting.pm +++ b/selfforum-cgi/shared/Encode/Posting.pm @@ -151,7 +151,7 @@ sub answer_field ($$) { my $qchar = $params -> {quoteChars}; - $area =~ s/(?:^|(
))(?!
)/$1\177/g if ($params -> {quoteArea}); # Antwortfeld quoten?! + $area =~ s/(?:^|(
))(?!
)/$1 || '' . "\177"/eg if ($params -> {quoteArea}); # Antwortfeld quoten?! $area =~ s/\177/$qchar/g; # normalisierte Quotes jedenfalls in Chars umsetzen # HTML-Zeug zurueckuebersetzen @@ -198,7 +198,7 @@ sub message_field ($$) { foreach $line (split (/
/,$posting)) { # Zeilenweise gucken, ($q) = ($line =~ /^(\177+)/g); # wieviele - $level = length ($q); # Quotingchars am Anfang stehen + $level = length ($q or ''); # Quotingchars am Anfang stehen if ($level != $last_level) { # wenn sich was verandert... # ... dann TU ETWAS!