Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Compare Revisions
29cef0e7ad7f1208b5fcd0d0259d7fe6182b4a8f...f44469e0fa4000a5b9cee5dcaf3c44ebb38fff7f
Commits (1)
Include '?' and '*' in ILLEGAL_FILENAME_CHARS definition
· f44469e0
Rob Swindell
authored
Jun 06, 2021
f44469e0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/sbbs3/sbbsdefs.h
src/sbbs3/sbbsdefs.h
+1
-1
src/sbbs3/upload.cpp
src/sbbs3/upload.cpp
+1
-1
No files found.
src/sbbs3/sbbsdefs.h
View file @
f44469e0
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
#define FNOPEN_BUF_SIZE (2*1024)
#define FNOPEN_BUF_SIZE (2*1024)
#define MAX_FILENAME_LEN 64
#define MAX_FILENAME_LEN 64
#define ILLEGAL_FILENAME_CHARS "\\/|<>:\";,%"
#define ILLEGAL_FILENAME_CHARS "\\/|<>:\";,%
?*
"
#define SAFEST_FILENAME_CHARS "-._0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
#define SAFEST_FILENAME_CHARS "-._0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
#define BIND_FAILURE_HELP "!Another application or service may be using this port"
#define BIND_FAILURE_HELP "!Another application or service may be using this port"
...
...
src/sbbs3/upload.cpp
View file @
f44469e0
...
@@ -276,7 +276,7 @@ bool sbbs_t::upload(uint dirnum)
...
@@ -276,7 +276,7 @@ bool sbbs_t::upload(uint dirnum)
f
.
dir
=
curdirnum
=
dirnum
;
f
.
dir
=
curdirnum
=
dirnum
;
bputs
(
text
[
Filename
]);
bputs
(
text
[
Filename
]);
if
(
getstr
(
fname
,
sizeof
(
fname
)
-
1
,
0
)
<
1
||
strchr
(
fname
,
'?'
)
||
strchr
(
fname
,
'*'
)
||
!
checkfname
(
fname
))
{
if
(
getstr
(
fname
,
sizeof
(
fname
)
-
1
,
0
)
<
1
||
!
checkfname
(
fname
))
{
if
(
fname
[
0
])
if
(
fname
[
0
])
bprintf
(
text
[
BadFilename
],
fname
);
bprintf
(
text
[
BadFilename
],
fname
);
return
(
false
);
return
(
false
);
...
...