From f2af0f13e87970d27f0d857d6a86a84cbda89ce5 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Thu, 18 Aug 2016 01:01:26 +0200 Subject: doc: Escape underscores Double underscore mark anonymous hyperlinks. To include '__' literally we need to escape it. --- src/lib/Bcfg2/Server/Encryption.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/Bcfg2/Server/Encryption.py') 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__") -- cgit v1.2.3-1-g7c22