diff options
| author | WubTheCaptain <wub@partyvan.eu> | 2015-09-15 16:28:14 +0200 |
|---|---|---|
| committer | pantsucat <contact@pantsu.cat> | 2015-09-15 16:28:14 +0200 |
| commit | 82ae4c6587c81211fe384c4b8bc607026dd018a7 (patch) | |
| tree | d86d18680114a5e23d9c8db730dc0ef27bece953 /pages/other.swig | |
| parent | 666adf95aa148dd169180c05bcd1dc4415a9b29a (diff) | |
Rework generate_name() logic
Adds a new config option POMF_FILES_LENGTH. This will allow the user to
adjust the length of filenames. Defaults to 6.
The filename generator never used character z in new filenames. There
are 27 characters in a-z, but the old code uses a magic number of 26
characters. This bug was introduced in commit
5b77a4eaab418836820b2a0bad7c88f0b88136a0.
Instead of relying on magic numbers like with mt_rand(), conveniently
use arrays with array_rand() instead. More characters can be added with
array_merge() in future if desired.
Diffstat (limited to 'pages/other.swig')
0 files changed, 0 insertions, 0 deletions
