]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fixed remaining substr_replace with multibyte equivalent.
authorSean Murphy <sgmurphy@gmail.com>
Tue, 10 Feb 2009 00:15:30 +0000 (19:15 -0500)
committerSean Murphy <sgmurphy@gmail.com>
Tue, 10 Feb 2009 00:15:30 +0000 (19:15 -0500)
lib/util.php

index be92f422fbb507d5657c81d0e3fe809afc32028f..75d1e21a47a4254cd6da9d49f1b5691ace432f44 100644 (file)
@@ -446,7 +446,7 @@ function common_replace_urls_callback($text, $callback) {
 
         // If the first part wasn't cap'd but the last part was, we captured too much
         if ((!$prev_part && $last_part)) {
-            $url = substr_replace($url, '', mb_strpos($url, '.'.$url_parts[2], 0));
+            $url = mb_substr($url, 0 , mb_strpos($url, '.'.$url_parts['2'], 0));
         }
 
         // Capture the new TLD