Merge pull request #50873 from Ch3LL/bp-50740

Backport #50740 to 2017.7
This commit is contained in:
Gareth J. Greenaway 2018-12-14 15:59:47 -08:00 committed by GitHub
commit e7f0ab6f19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -490,7 +490,7 @@ def valid_id(opts, id_):
if any(x in id_ for x in ('/', '\\', '\0')):
return False
return bool(clean_path(opts['pki_dir'], id_))
except (AttributeError, KeyError, TypeError):
except (AttributeError, KeyError, TypeError, UnicodeDecodeError):
return False