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:
@@ -22,7 +22,7 @@ from . import models
|
||||
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):
|
||||
return ''.join(random.choice(rand_charset) for _ in range(digits))
|
||||
|
||||
Reference in New Issue
Block a user