# HG changeset patch # User Marcin Kuzminski # Date 2012-03-21 16:59:59 # Node ID ad127a5cef737ca91b890797821c3115b9ad1c5a # Parent d25bd432bc3e452ff4509d6c0b8f79cb018fa20e fixed comments issue on non-ascii file names diff --git a/rhodecode/lib/helpers.py b/rhodecode/lib/helpers.py --- a/rhodecode/lib/helpers.py +++ b/rhodecode/lib/helpers.py @@ -68,7 +68,7 @@ def FID(raw_id, path): :param path: """ - return 'C-%s-%s' % (short_id(raw_id), md5(path).hexdigest()[:12]) + return 'C-%s-%s' % (short_id(raw_id), md5(safe_str(path)).hexdigest()[:12]) def get_token():