diff options
author | Alexander Sulfrian <alexander.sulfrian@fu-berlin.de> | 2016-08-18 01:01:26 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander.sulfrian@fu-berlin.de> | 2016-08-18 01:58:58 +0200 |
commit | f2af0f13e87970d27f0d857d6a86a84cbda89ce5 (patch) | |
tree | 34007a39f45a19f745e8aaf2b2a7c5522476368c /src | |
parent | 1ea73b4417f531c8ca16d4e50ebee42d6ad603ae (diff) | |
download | bcfg2-f2af0f13e87970d27f0d857d6a86a84cbda89ce5.tar.gz bcfg2-f2af0f13e87970d27f0d857d6a86a84cbda89ce5.tar.bz2 bcfg2-f2af0f13e87970d27f0d857d6a86a84cbda89ce5.zip |
doc: Escape underscores
Double underscore mark anonymous hyperlinks. To include '__' literally
we need to escape it.
Diffstat (limited to 'src')
-rwxr-xr-x | src/lib/Bcfg2/Server/Encryption.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Encryption.py b/src/lib/Bcfg2/Server/Encryption.py index b60302871..c6cd4232e 100755 --- a/src/lib/Bcfg2/Server/Encryption.py +++ b/src/lib/Bcfg2/Server/Encryption.py @@ -176,7 +176,7 @@ def ssl_encrypt(plaintext, passwd, algorithm=None, salt=None): def is_encrypted(val): """ Make a best guess if the value is encrypted or not. This just checks to see if ``val`` is a base64-encoded string whose content - starts with "Salted__", so it may have (rare) false positives. It + starts with "Salted\\_\\_", so it may have (rare) false positives. It will not have false negatives. """ try: return b64decode(val).startswith("Salted__") |