aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2023-12-26 21:59:10 +0100
committerHarald Eilertsen <haraldei@anduin.net>2023-12-26 21:59:10 +0100
commit2aa64ebdd0c794d35d66b251c5ef4272d8ab5749 (patch)
treec932a035c4358de000ada4d14a5e9e088db5433a /include/text.php
parent19dd1fe86605bc85e8a0bf4efd6f195db258f60a (diff)
downloadvolse-hubzilla-2aa64ebdd0c794d35d66b251c5ef4272d8ab5749.tar.gz
volse-hubzilla-2aa64ebdd0c794d35d66b251c5ef4272d8ab5749.tar.bz2
volse-hubzilla-2aa64ebdd0c794d35d66b251c5ef4272d8ab5749.zip
Fix some deprecation warnings.
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php
index 27dd94bc5..5330e19c7 100644
--- a/include/text.php
+++ b/include/text.php
@@ -3838,6 +3838,10 @@ function featured_sort($a,$b) {
function punify($s) {
+ if (empty($s)) {
+ return '';
+ }
+
require_once('vendor/simplepie/simplepie/idn/idna_convert.class.php');
$x = new idna_convert(['encoding' => 'utf8']);
return $x->encode($s);