mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	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:
		| @@ -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; | ||||
|   | ||||
| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user