1
0
mirror of https://github.com/20kdc/OC-KittenOS.git synced 2024-11-27 04:48:05 +11:00

Update kn-refer in regards to the filename characters.

This commit is contained in:
20kdc 2018-05-30 16:29:06 +01:00
parent 3df5b6d3c9
commit e6afe02457
2 changed files with 5 additions and 17 deletions

View File

@ -24,7 +24,7 @@ return {
}, },
["neo-docs"] = { ["neo-docs"] = {
desc = "KittenOS NEO system documentation", desc = "KittenOS NEO system documentation",
v = 3, v = 4,
deps = { deps = {
"zzz-license-pd" "zzz-license-pd"
}, },

View File

@ -227,22 +227,10 @@ For libraries, it contains:
ensurePathComponent(s): ensurePathComponent(s):
Ensures that a string is a safe Ensures that a string is a safe
filename via a character list and filename via a character list and
some special filename checks. some special filename checks, for
UTF-8 characters are just flat out ".." and ".".
disallowed until someone can give Rather permissive right now, but
me proof they won't blow up don't go relying on that.
something somewhere.
(This restriction is Windows's
fault - I can't trust the encoding
mess to not find some new and
imaginative way of breaking
filenames, so I'd rather that they
get avoided until someone can try
actually using them.)
This does NOT ACCOUNT for *all* the
Windows total nonsense (aux, com1)
because if OC doesn't cover up
that then you're kinda doomed.
ensureType(v, ts): ensureType(v, ts):
Checks that a value is of a given Checks that a value is of a given
type, and errors otherwise. If the type, and errors otherwise. If the