Posted by: Wisp
« on: July 30, 2017, 11:48:35 AM »Escape or quote special characters and user input and it won't be such a problem. It's best practice stuff.
Don't fix what isn't broken.But it's broken already, we just have been lucky that no one created "ClassicOldNight" aka "CON" mod.
I'll try to remember this for when it's time. But I should say I was not envisioning the kind of closed format that could do more than inconvenience someone who wanted to stray outside the reservation.I second both points. Don't fix what isn't broken.
If I may ask, though, why? Maybe I'm ignorant of these things, but it seems we have gone some 15+ years without having noticeable problems of this kind. [speculation]Additionally, Windows has the most restrictions here, something like 95 % of everyone uses Windows themselves, and the fraction of people who ship verboten characters would face a proportional deluge of players complaining about the broken mod being shipped.[/speculation]
#
_
-
a-z
A-Z
0-9
CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9
/ (forward slash)
'\0' (NUL)
<
>
:
"
/
\
|
?
*
#
.
,
+
{
}
[
]
@
%
^
&
$
&
|
:
+
,
<
>
So I strongly suggest to also include them. If there will be questions, I can provide detailed explanation/examples.