Mercurial > hg > rc2
diff program/lib/Roundcube/rcube_text2html.php @ 22:303b85d5b561
More cleaning up php8 Warnings/deprecations
| author | Charlie Root |
|---|---|
| date | Wed, 15 Oct 2025 14:06:27 -0400 |
| parents | b6a96bdd6b29 |
| children | c32b53434b47 |
line wrap: on
line diff
--- a/program/lib/Roundcube/rcube_text2html.php Thu Oct 09 11:31:41 2025 -0400 +++ b/program/lib/Roundcube/rcube_text2html.php Wed Oct 15 14:06:27 2025 -0400 @@ -249,7 +249,7 @@ $sig_sep = "--" . $this->config['space'] . "\n"; $sig_max_lines = rcube::get_instance()->config->get('sig_max_lines', 15); - while (($sp = strrpos($text, $sig_sep, $sp ? -$len+$sp-1 : 0)) !== false) { + while (($sp = strrpos($text, $sig_sep, isset($sp) ? -$len+$sp-1 : 0)) !== false) { if ($sp == 0 || $text[$sp-1] == "\n") { // do not touch blocks with more that X lines if (substr_count($text, "\n", $sp) < $sig_max_lines) {
