Comments (7)
Travis CI: https://travis-ci.org/Waavi/Sanitizer/builds/611842012
from sanitizer.
Did you manage to find a solution ??
from sanitizer.
Agree with the issue. Rollback to 1.0.13
should be enough workaround until it get's solved.
from sanitizer.
The latest commit introduces an inconsistency that can be detected by analyzing static code. See details here:
from sanitizer.
I can confirm this. 1.0.14 broke my whole application, since validation failes with that error. Reverted back to 1.0.13 and it works again.
from sanitizer.
confirmed. broken. revering back.
from sanitizer.
I got error also
"ErrorException: Illegal string offset 'name' in /var/www/jianghu_entertain/vendor/waavi/sanitizer/src/Sanitizer.php:131\nStack trace:\n#0 /var/www/jianghu_entertain/vendor/waavi/sanitizer/src/Sanitizer.php(131): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'Illegal string ...', '/var/www/jiangh...', 131, Array)\n#1 /var/www/jianghu_entertain/vendor/waavi/sanitizer/src/Sanitizer.php(167): Waavi\Sanitizer\Sanitizer->applyFilter('cast', '["10.10.1.10"]', Array)\n#2 /var/www/jianghu_entertain/vendor/waavi/sanitizer/src/Laravel/SanitizesInput.php(43): Waavi\Sanitizer\Sanitizer->sanitize()\n#3 /var/www/jianghu_entertain/app/Http/Requests/BaseFormRequest.php(30): App\Http\Requests\BaseFormRequest->sanitize()\n#4 /var/www/jianghu_entertain/vendor/laravel/framework/src/Illuminate/Foundation/Providers/FormRequestServiceProvider.php(30): App\Http\Requests\BaseFormRequest->validateResolved()\n#5 /var/www/jianghu_entertain/vendor/laravel/framework/src/Illuminate/Container/Container.php(1102): Illuminate\Foundation\Providers\FormRequestServiceProvider->Illuminate\Foundation\Providers\{closure}(Object(App\Http\Requests\Backend\Headquarters\GameVendor\AddRequest), Object(Illuminate\Foundation\Application))\n#6 /var/www/jianghu_entertain/vendor/laravel/framework/src/Illuminate/Container/Container.php(1066): Illuminate\Container\Container->fireCallbackArray(Object(App\Http\Requests\Backend\Headquarters\GameVendor\AddRequest), Array)\n#7 /var/www/jianghu_entertain/vendor/laravel/framework/src/Illuminate/Container/Container.php(1051): Illuminate\Container\Container->fireAfterResolvingCallbacks('App\\Http\\Reques...', Object(App\Http\Requests\Backend\Headquarters\GameVendor\AddRequest))\n#8 /var/www/jianghu_entertain/vendor/laravel/framework/src/Illuminate/Container/Container.php(701): Illuminate\Container\Container->fireResolvingCallbacks('App\\Http\\Reques...', Object(App\Http\Requests\Backend\Headquarters\GameVendor\AddRequest))\n#9 /var/www/jianghu_entertain/vendor/laravel/framework/src/Illuminate/Container/Container.php(629): Illuminate\Container\Container->resolve('App\\Http\\Reques...', Array)\n#10 /var/www/jianghu_entertain/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(768): Illuminate\Container\Container->make('App\\Http\\Reques...', Array)\n#11 /var/www/jianghu_entertain/vendor/laravel/framework/src/Illuminate/Routing/RouteDependencyResolverTrait.php(79): Illuminate\Foundation\Application->make('App\\Http\\Reques...')\n#12 /var/www/jianghu_entertain/vendor/laravel/framework/src/Illuminate/Routing/RouteDependencyResolverTrait.php(46): Illuminate\Routing\ControllerDispatcher->transformDependency(Object(ReflectionParameter), Array)\n#13 /var/www/jianghu_entertain/vendor/laravel/framework/src/Illuminate/Routing/RouteDependencyResolverTrait.php(27): Illuminate\Routing\ControllerDispatcher->resolveMethodDependencies(Array, Object(ReflectionMethod))\n#14 /var/www/jianghu_entertain/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(41): Illuminate\Routing\ControllerDispatcher->resolveClassMethodDependencies(Array, Object(App\Http\Controllers\BackendApi\Headquarters\BackendGameVendorController), 'addDo')\n#15 /var/www/jianghu_entertain/vendor/laravel/framework/src/Illuminate/Routing/Route.php(219): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\BackendApi\Headquarters\BackendGameVendorController), 'addDo')\n#16 /var/www/jianghu_entertain/vendor/laravel/framework/src/Illuminate/Routing/Route.php(176): Illuminate\Routing\Route->runController()\n#17 /var/www/jianghu_entertain/vendor/laravel/framework/src/Illuminate/Routing/Router.php(680): Illuminate\Routing\Route->run()\n#18 /var/www/jianghu_entertain/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(130):
from sanitizer.
Related Issues (20)
- I would like to use some kind of "stripTags" function HOT 3
- Laravel 5.6 breaks the current version of the package
- Laravel 5.6 version HOT 1
- I do not get the filtered data back when validation succeeds. HOT 3
- Sanitize for all item in array HOT 1
- Question: It is possible to use custom filters when using SanitizesInput on my FormRequest? HOT 1
- FormRequest SanitizesInput trait adds attribute when they are not present HOT 5
- No filter found by the name of digit HOT 1
- Add a filter for sometimes rules HOT 3
- Update in packagist HOT 1
- Question: How to convert from UTF-8 general_ci ? HOT 1
- Usage in FormRequest HOT 7
- filter_if: Option? HOT 1
- Laravel 6 compatibility HOT 1
- Question: is there any way of applying a sanitizer filter after validation? HOT 3
- Using the Trait wont work when using request('input_name')
- Laravel 7 compatibility
- Does not work with illuminate/validation 5.3.23 HOT 2
- Add Laravel 8 support HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sanitizer.