Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Tiny Tiny RSS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Server
Tiny Tiny RSS
Commits
62958fe9
Commit
62958fe9
authored
Jan 02, 2017
by
Bernhard Thaler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
convert to punycode for feed on idn hostname
parent
832aa249
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
include/functions2.php
include/functions2.php
+10
-0
install/index.php
install/index.php
+4
-0
No files found.
include/functions2.php
View file @
62958fe9
...
...
@@ -1776,6 +1776,16 @@
$url
.
=
'/'
;
}
//convert IDNA hostname to punycode if possible
if
(
function_exists
(
"idn_to_ascii"
))
{
$parts
=
parse_url
(
$url
);
if
(
mb_detect_encoding
(
$parts
[
'host'
])
!=
'ASCII'
)
{
$parts
[
'host'
]
=
idn_to_ascii
(
$parts
[
'host'
]);
$url
=
build_url
(
$parts
);
}
}
if
(
$url
!=
"http:///"
)
return
$url
;
else
...
...
install/index.php
View file @
62958fe9
...
...
@@ -317,6 +317,10 @@
array_push
(
$notices
,
"CURL and open_basedir combination breaks support for HTTP redirects. See the FAQ for more information."
);
}
if
(
!
function_exists
(
"idn_to_ascii"
))
{
array_push
(
$notices
,
"PHP support for Internationalization Functions is required to handle Internationalized Domain Names."
);
}
if
(
count
(
$notices
)
>
0
)
{
print_notice
(
"Configuration check succeeded with minor problems:"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment