aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-10-04 14:58:46 -0700
committerH. Peter Anvin <hpa@zytor.com>2011-10-04 14:58:46 -0700
commit961e42b1600f5dbed53f8fdc8b35f1a77a422231 (patch)
tree2dacd18d34b75185cad0565ab93d243199512706
parent6c64ec1cccd6b39da17bf422eb93681876981823 (diff)
downloadkup-961e42b1600f5dbed53f8fdc8b35f1a77a422231.tar.gz
Remove : from the forbidden set
It was just a mistake. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rwxr-xr-xkorgupload2
-rwxr-xr-xkup2
2 files changed, 2 insertions, 2 deletions
diff --git a/korgupload b/korgupload
index 30e5e12..c3db493 100755
--- a/korgupload
+++ b/korgupload
@@ -200,7 +200,7 @@ sub is_valid_filename($)
# Reject undesirable filename characters anywhere in the name.
# This isn't inherently security-critical, and could be tuned if
# users need it...
- return 0 if ($f =~ m:[\!\"\$\&\'\*\:\;\<\>\?\\\`\|]:);
+ return 0 if ($f =~ m:[\!\"\$\&\'\*\;\<\>\?\\\`\|]:);
# Make sure we can create a filename after adding .bz2 or similar.
# We can't use the obvious regexp here, because regexps operate on
diff --git a/kup b/kup
index 0cce716..697adaa 100755
--- a/kup
+++ b/kup
@@ -96,7 +96,7 @@ sub is_valid_filename($)
# Reject undesirable filename characters anywhere in the name.
# This isn't inherently security-critical, and could be tuned if
# users need it...
- return 0 if ($f =~ m:[\!\"\$\&\'\*\:\;\<\>\?\\\`\|]:);
+ return 0 if ($f =~ m:[\!\"\$\&\'\*\;\<\>\?\\\`\|]:);
# Make sure we can create a filename after adding .bz2 or similar.
# We can't use the obvious regexp here, because regexps operate on