[LON-CAPA-cvs] cvs: loncom /interface londocs.pm
www
lon-capa-cvs@mail.lon-capa.org
Fri, 07 Feb 2003 15:05:38 -0000
www Fri Feb 7 10:05:38 2003 EDT
Modified files:
/loncom/interface londocs.pm
Log:
Maybe solves the DOCS part of Bug #1230 - escapes the folder name in the GET
when opening a specific folder.
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.47 loncom/interface/londocs.pm:1.48
--- loncom/interface/londocs.pm:1.47 Tue Feb 4 13:23:21 2003
+++ loncom/interface/londocs.pm Fri Feb 7 10:05:37 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.47 2003/02/04 18:23:21 www Exp $
+# $Id: londocs.pm,v 1.48 2003/02/07 15:05:37 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -249,7 +249,8 @@
}
}
$url=~s/^http\&colon\;\/\//\/adm\/wrapper\/ext\//;
- if ($isfolder) { $url.='&foldername='.$foldertitle; }
+ if ($isfolder) { $url.='&foldername='.
+ &Apache::lonnet::escape($foldertitle); }
$line.='<td bgcolor="#FFFFBB"><a href="'.$url.'" target="cat_'.$folder.
'"><img src="/adm/lonIcons/'.
$icon.'.gif" border="0"></a></td>'.