Mercurial > kallithea
comparison rhodecode/lib/utils.py @ 2786:ffaaeb5a5a69 beta
Filter more special chars in validation of repo name
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 03 Sep 2012 17:22:33 +0200 |
parents | dd240b2b7a12 |
children | 9ae95fdeca18 3a007d806f0f |
comparison
equal
deleted
inserted
replaced
2785:f1f01e951008 | 2786:ffaaeb5a5a69 |
---|---|
89 """ | 89 """ |
90 | 90 |
91 slug = remove_formatting(value) | 91 slug = remove_formatting(value) |
92 slug = strip_tags(slug) | 92 slug = strip_tags(slug) |
93 | 93 |
94 for c in """=[]\;'"<>,/~!@#$%^&*()+{}|: """: | 94 for c in """`?=[]\;'"<>,/~!@#$%^&*()+{}|: """: |
95 slug = slug.replace(c, '-') | 95 slug = slug.replace(c, '-') |
96 slug = recursive_replace(slug, '-') | 96 slug = recursive_replace(slug, '-') |
97 slug = collapse(slug, '-') | 97 slug = collapse(slug, '-') |
98 return slug | 98 return slug |
99 | 99 |