We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Affected Symphony version(s) : 3.0.0 PHP version(s) : 7.3.7 MySQL version(s): 5.7.26 Homebrew OS(es) : macOS Catalina 10.15.3
Accessing the symphony admin returned the following error:
Symphony Deprecated Warning: idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated An error occurred in /Users/stephen/Sites/symphonycms/symphony/lib/boot/func.utilities.php around line 28 23 // convert idn back to ascii for redirect 24 25 if (function_exists('idn_to_ascii')) { 26 $root = parse_url(URL); 27 $host = $root['host']; 28 $url = str_replace($host, idn_to_ascii($host), $url); 29 } 30 31 cleanup_session_cookies(); 32 header('Status: 302 Found');
The error was solved by changing line 28 of func.utilities.php from this:
func.utilities.php
$url = str_replace($host, idn_to_ascii($host), $url);
to this:
$url = str_replace($host, idn_to_ascii($host,0,INTL_IDNA_VARIANT_UTS46), $url);
based on a similar error reported here.
The text was updated successfully, but these errors were encountered:
where do you get this error?
Sorry, something went wrong.
(fix) Properly call idn_to_utf8/ascii functions
7cc5f68
Since we do not support php 5.4, we can safely use the required version for php 7.2. Fixes #2910
@bauhouse Seems like we patch it in defines but not in functions. I've push a commit if you want to try the fix
No branches or pull requests
Affected Symphony version(s) : 3.0.0
PHP version(s) : 7.3.7
MySQL version(s): 5.7.26 Homebrew
OS(es) : macOS Catalina 10.15.3
Accessing the symphony admin returned the following error:
The error was solved by changing line 28 of
func.utilities.php
from this:to this:
based on a similar error reported here.
The text was updated successfully, but these errors were encountered: