Fix vmail "taint" issue

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1051 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-05-22 04:50:53 +00:00
parent d82c9db4c8
commit bc75095a9a
2 changed files with 12 additions and 0 deletions

View File

@@ -600,6 +600,12 @@ sub message_rename()
my ($context, $mbox, $oldfolder, $old, $newfolder, $new) = @_;
my $oldfile, $newfile;
return if ($old eq $new) && ($oldfolder eq $newfolder);
if ($context =~ /^(\w+)$/) {
$context = $1;
} else {
die("Invalid Context<BR>\n");
}
if ($mbox =~ /^(\w+)$/) {
$mbox = $1;