New issue
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
Plugin: Howto skip/adjust config filter? #5890
Comments
I am pretty sure your code is already skipping the input / output filter. "Problem" is in CoreAdminHome controller which passes the value like this to the settings API see https://github.com/piwik/piwik/blob/master/plugins/CoreAdminHome/Controller.php#L160 It uses |
@tsteur maybe it would work to get the raw value via |
"Auto" security is always a probelm IMO....see what happend to I like the ZF2 way...define the filter/validators per default for each input type: Then you can override it for each element if you want. |
I was rather concert about changing it now regarding breaking the API. The settings API's might be already used in some plugins out there who maybe rely on this. Makes still sense to fix it though so should be ok if we announce it maybe even upfront or so. |
@tsteur i can be a BC, but don't have to. |
That's a great idea @ThaDafinser Didn't think of that. I implemented it like this and then noticed it makes sense to actually pass the unmodified value to the settings as it otherwise just results in more problems. Think for instance of the control "password" where we should not change the value at all. Also the default validator which is used if |
Nice @tsteur! @ThaDafinser feel free to close ticket if the new code works for you. thanks for reporting! |
Thx for the quick fix again :) |
I have a configuration for a plugin (release soon)...
But how can i skip input/output filter?
Converting like
&
to&
destroying the valid ldap filter...The text was updated successfully, but these errors were encountered: