# -*-perl-*-
#
-# $Id: SWList.pm,v 1.1 1999/07/30 18:46:37 mdw Exp $
+# $Id: SWList.pm,v 1.3 2004/04/08 01:52:19 mdw Exp $
#
# Create the main list of installed packages
#
# along with sw-tools; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#----- Revision history -----------------------------------------------------
-#
-# $Log: SWList.pm,v $
-# Revision 1.1 1999/07/30 18:46:37 mdw
-# New CGI script for browsing installed software and documentation.
-#
-
#----- Package header -------------------------------------------------------
package SWList;
# --- If the documentation file exists, put a link in ---
if (-r "$C{doc}/$pkg") {
- print(" <td><a href=\"$ref?act=doc&pkg=$pkg\">Yes</a>\n");
+ printf(" <td><a href=\"$ref?act=doc&pkg=%s\">Yes</a>\n",
+ SWCGI::sanitize($pkg));
} else {
print(" <td>No\n");
}