--- rat/lonratsrv.pm 2001/07/03 22:37:37 1.13 +++ rat/lonratsrv.pm 2001/07/04 19:59:24 1.14 @@ -8,7 +8,7 @@ # 7/1 Gerd Kortemeyer) # 7/1,7/3,7/4,7/7,7/8,7/10,7/26,10/2 Gerd Kortemeyer # 4/30/2001 Scott Harrison -# 5/3,06/25,07/03 Gerd Kortemeyer +# 5/3,06/25,07/03,07/04 Gerd Kortemeyer package Apache::lonratsrv; @@ -25,7 +25,7 @@ sub qtescape { $str=~s/\&\#58\;/\:/g; $str=~s/\&\#39\;/\'/g; $str=~s/\&\#44\;/\,/g; - $str=~s/\"/\&\#34\;/g; + $str=~s/\&\#34\;/\"/g; return $str; } @@ -33,7 +33,7 @@ sub qtescape { sub qtunescape { my $str=shift; - $str=~s/\:/\&\#58\;/g; + $str=~s/\:/\&colon\;/g; $str=~s/\'/\&\#39\;/g; $str=~s/\,/\&\#44\;/g; $str=~s/\"/\&\#34\;/g; @@ -84,7 +84,7 @@ sub loadmap { $outstr.='<:>'; $outstr.=qtunescape($token->[2]->{'title'}).":"; $outstr.=qtunescape($token->[2]->{'src'}).":"; - if ($token->[2]->{'src'}=~/\/\//) { + if ($token->[2]->{'external'} eq 'true') { $outstr.='true:'; } else { $outstr.='false:'; @@ -201,6 +201,7 @@ sub savemap { if ($comp[1]!~/^http\:\/\//) { $comp[1]='http://'.$comp[1]; } + $comp[1].='" external="true'; } else { if ($comp[1]=~/^http\:\/\//) { $comp[1]=~s/^http\:\/\/[^\/]*\//\//;