diff program/lib/Roundcube/rcube_string_replacer.php @ 27:c32b53434b47

more compensation for deprecated empty cases
author Charlie Root
date Sun, 18 Jan 2026 14:20:29 -0500
parents 4681f974d28b
children
line wrap: on
line diff
--- a/program/lib/Roundcube/rcube_string_replacer.php	Sat Oct 18 12:24:31 2025 -0400
+++ b/program/lib/Roundcube/rcube_string_replacer.php	Sun Jan 18 14:20:29 2026 -0500
@@ -91,6 +91,8 @@
     {
         $i = -1;
         $scheme = strtolower($matches[1]);
+	$url_prefix = '';
+	$prefix = '';
 
         if (preg_match('!^(http|ftp|file)s?://!i', $scheme)) {
             $url = $matches[1] . $matches[2];
@@ -209,6 +211,8 @@
         // Yes, this is not perfect handles correctly only paired characters
         // but it should work for common cases
 
+      $suffix = '';
+
         if (preg_match('/(\\[|\\])/', $url)) {
             $in = false;
             for ($i=0, $len=strlen($url); $i<$len; $i++) {