mirror of
				https://github.com/janeczku/calibre-web
				synced 2025-10-31 07:13:02 +00:00 
			
		
		
		
	Fix for (#117)
This commit is contained in:
		| @@ -222,14 +222,14 @@ def get_valid_filename(value, replace_whitespace=True): | ||||
|     if use_unidecode: | ||||
|         value=(unidecode.unidecode(value)).strip() | ||||
|     else: | ||||
|         value=value.replace('§','SS') | ||||
|         value=value.replace('ß','ss') | ||||
|         value=value.replace(u'§',u'SS') | ||||
|         value=value.replace(u'ß',u'ss') | ||||
|         value = unicodedata.normalize('NFKD', value) | ||||
|         re_slugify = re.compile('[\W\s-]', re.UNICODE) | ||||
|         value = unicode(re_slugify.sub('', value).strip()) | ||||
|     if replace_whitespace: | ||||
|         #*+:\"/<>? werden durch _ ersetzt | ||||
|         value = re.sub('[\*\+:\\\"/<>\?]+', '_', value, flags=re.U) | ||||
|         value = re.sub('[\*\+:\\\"/<>\?]+', u'_', value, flags=re.U) | ||||
|  | ||||
|     value = value[:128] | ||||
|     return value | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 OzzieIsaacs
					OzzieIsaacs