projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
695e3d8
)
The function is now usable for all formats
author
Michael
<heluecht@pirati.ca>
Wed, 11 May 2022 06:58:26 +0000
(06:58 +0000)
committer
Michael
<heluecht@pirati.ca>
Wed, 11 May 2022 06:58:26 +0000
(06:58 +0000)
src/Util/Network.php
patch
|
blob
|
history
diff --git
a/src/Util/Network.php
b/src/Util/Network.php
index cdcb39a49605c2529e3de2f0d20b449deb9de44e..7d935d55f0d8af5e90c6bb2b899f24aa97ed5c76 100644
(file)
--- a/
src/Util/Network.php
+++ b/
src/Util/Network.php
@@
-474,10
+474,12
@@
class Network
if (!empty($parts['scheme']) && !empty($parts['host'])) {
$parts['host'] = idn_to_ascii($parts['host']);
$uri = self::unparseURL($parts);
- } else
if (strstr($uri, '@'))
{
+ } else {
$parts = explode('@', $uri);
if (count($parts) == 2) {
$uri = $parts[0] . '@' . idn_to_ascii($parts[1]);
+ } else {
+ $uri = idn_to_ascii($uri);
}
}