X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/sw-tools/blobdiff_plain/fae2108b8a8d45ebef4d49fcb0964453c2be32a7..HEAD:/perl/SWMan.pm
diff --git a/perl/SWMan.pm b/perl/SWMan.pm
index e799148..439a133 100644
--- a/perl/SWMan.pm
+++ b/perl/SWMan.pm
@@ -1,6 +1,6 @@
# -*-perl-*-
#
-# $Id: SWMan.pm,v 1.3 1999/08/19 12:11:10 mdw Exp $
+# $Id: SWMan.pm,v 1.5 2004/04/08 01:52:19 mdw Exp $
#
# Display and other fiddling of manual pages
#
@@ -25,19 +25,6 @@
# 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: SWMan.pm,v $
-# Revision 1.3 1999/08/19 12:11:10 mdw
-# More improvements to URL recognizer.
-#
-# Revision 1.2 1999/08/18 17:10:07 mdw
-# Slight improvements to URL and email address parsing.
-#
-# Revision 1.1 1999/07/30 18:46:37 mdw
-# New CGI script for browsing installed software and documentation.
-#
-
#----- Package preamble -----------------------------------------------------
package SWMan;
@@ -106,8 +93,9 @@ sub check($$) {
sub subst($$$) {
my ($s, $n, $sec) = @_;
check($n, $sec) and
- return "$s";
- return "$s";
+ return sprintf("$s",
+ SWCGI::sanitize($n));
+ return $s;
}
# --- @urlsubst(URL, STRING)@ ---