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
If you go to a URL with an incomplete multibyte character in the URI, an error will occur that Retour doesn’t catch.
/test%F2%FB
404 error
A 500 response is given, with this in the logs:
2019-02-20 03:32:21 [-][18][msol1tbrqs5l93vb53nifir9bm][error][yii\base\ErrorException:1] yii\base\ErrorException: Uncaught yii\base\ErrorException: iconv(): Detected an incomplete multibyte character in input string in /var/app/current/vendor/nystudio107/craft-retour/src/helpers/Text.php:91 Stack trace: #0 /var/app/current/vendor/craftcms/cms/src/web/ErrorHandler.php(76): yii\base\ErrorHandler->handleError(8, 'iconv(): Detect...', '/var/app/curren...', 91) #1 [internal function]: craft\web\ErrorHandler->handleError(8, 'iconv(): Detect...', '/var/app/curren...', 91, Array) #2 /var/app/current/vendor/nystudio107/craft-retour/src/helpers/Text.php(91): iconv('', 'UTF-8//IGNORE', '/testfooo\xF2\xFB') #3 /var/app/current/vendor/nystudio107/craft-retour/src/validators/DbStringValidator.php(52): nystudio107\retour\helpers\Text::cleanupText('/testfooo\xF2\xFB') #4 /var/app/current/vendor/yiisoft/yii2/validators/Validator.php(267): nystudio107\retour\validators\DbStringValidator->validateAttribute(Object(nystudio107\retour\models\Stats), 'redirectSrcUrl') #5 /var/app/current/vendor/yiisoft/yii2/base/Model.php(367): yii\validators\ in /var/app/current/vendor/nystudio107/craft-retour/src/helpers/Text.php:91 Stack trace: #0 [internal function]: yii\base\ErrorHandler->handleFatalError() #1 {main} 2019-02-20 03:32:20 [-][18][msol1tbrqs5l93vb53nifir9bm][info][application] $_GET = [ 'p' => 'test�' ]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If you go to a URL with an incomplete multibyte character in the URI, an error will occur that Retour doesn’t catch.
Steps to reproduce:
/test%F2%FB
Expected behavior:
404 error
Actual:
A 500 response is given, with this in the logs:
The text was updated successfully, but these errors were encountered: