Switch to unified view

a/Allura/allura/lib/helpers.py b/Allura/allura/lib/helpers.py
...
...
47
)+
47
)+
48
\Z''', re.VERBOSE)
48
\Z''', re.VERBOSE)
49
49
50
def make_safe_path_portion(ustr):
50
def make_safe_path_portion(ustr):
51
    ustr = really_unicode(ustr)
51
    ustr = really_unicode(ustr)
52
    s = ustr.encode('latin-1', 'ignore')
52
    s = ustr.encode('utf8', 'ignore')
53
    s = AsciiDammit.asciiDammit(s)
53
    s = AsciiDammit.asciiDammit(s)
54
    s = s.lower()
54
    s = s.lower()
55
    s = '-'.join(re_path_portion_fragment.findall(s))
55
    s = '-'.join(re_path_portion_fragment.findall(s))
56
    s = s.replace('--', '-')
56
    s = s.replace('--', '-')
57
    return s
57
    return s