Skip to content
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

[16.07] Fix the sanitization of None values in utils. This had previously no… #2693

Merged
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -678,9 +678,11 @@ def __init__( self, params, sanitize=True ):
# name. Anything relying on NEVER_SANITIZE should be
# changed to not require this and NEVER_SANITIZE should be
# removed.
if key not in self.NEVER_SANITIZE and True not in [ key.endswith( "|%s" % nonsanitize_parameter ) for
nonsanitize_parameter in self.NEVER_SANITIZE ]:
self.__dict__[ key ] = sanitize_param( value )
if (value is not None and
key not in self.NEVER_SANITIZE and
True not in [ key.endswith( "|%s" % nonsanitize_parameter ) for
nonsanitize_parameter in self.NEVER_SANITIZE ]):
self.__dict__[ key ] = sanitize_param( value )
else:
self.__dict__[ key ] = value
else:
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.