9
0
mirror of https://github.com/donlon/cloudflare-error-page.git synced 2025-12-19 14:59:28 +00:00

editor/server: only use lowercase letter in random name

This commit is contained in:
Anthony Donlon
2025-11-20 22:07:08 +08:00
parent 42882ed128
commit cebaa09fc3

View File

@@ -22,7 +22,7 @@ from . import models
bp = Blueprint('share', __name__, url_prefix='/') bp = Blueprint('share', __name__, url_prefix='/')
rand_charset = string.ascii_letters + string.digits rand_charset = string.ascii_lowercase + string.digits
def get_rand_name(digits=8): def get_rand_name(digits=8):
return ''.join(random.choice(rand_charset) for _ in range(digits)) return ''.join(random.choice(rand_charset) for _ in range(digits))