##// END OF EJS Templates
reimplemented name slug to accept capitalized repositories names
marcink -
r481:4187d93c celery
parent child Browse files
Show More
@@ -277,13 +277,17 b' def pygmentize_annotation(filenode, **kw'
277 return literal(annotate_highlight(filenode, url_func, **kwargs))
277 return literal(annotate_highlight(filenode, url_func, **kwargs))
278
278
279 def repo_name_slug(value):
279 def repo_name_slug(value):
280 """
280 """Return slug of name of repository
281 Return slug of name of repository
281 This function is called on each creation/modification
282 of repository to prevent bad names in repo
282 """
283 """
283 slug = urlify(value)
284 slug = remove_formatting(value)
284 for c in """=[]\;'"<>,/~!@#$%^&*()+{}|:""":
285 slug = strip_tags(slug)
286
287 for c in """=[]\;'"<>,/~!@#$%^&*()+{}|: """:
285 slug = slug.replace(c, '-')
288 slug = slug.replace(c, '-')
286 slug = recursive_replace(slug, '-')
289 slug = recursive_replace(slug, '-')
290 slug = collapse(slug, '-')
287 return slug
291 return slug
288
292
289 def get_changeset_safe(repo, rev):
293 def get_changeset_safe(repo, rev):
General Comments 0
You need to be logged in to leave comments. Login now