--- loncom/auth/lonacc.pm 2010/03/29 13:31:01 1.134 +++ loncom/auth/lonacc.pm 2010/10/29 20:41:49 1.135 @@ -1,7 +1,7 @@ # The LearningOnline Network # Cookie Based Access Handler # -# $Id: lonacc.pm,v 1.134 2010/03/29 13:31:01 raeburn Exp $ +# $Id: lonacc.pm,v 1.135 2010/10/29 20:41:49 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -156,7 +156,7 @@ sub get_posted_cgi { for ($i=0;$i<=$#lines;$i++) { if ($lines[$i]=~/^--\Q$contentsep\E/) { if ($name) { - chomp($value); + $value=~s/[\r\n]+$//; if (ref($fields) eq 'ARRAY') { next if (!grep(/^\Q$name\E$/,@{$fields})); }