X-Git-Url: https://git.distorted.org.uk/~mdw/sw-tools/blobdiff_plain/fae2108b8a8d45ebef4d49fcb0964453c2be32a7..c629200be4128053bb2c1e73f1b337cf099c2411:/perl/SWMan.pm diff --git a/perl/SWMan.pm b/perl/SWMan.pm index e799148..4a48eb5 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.4 1999/08/24 12:15:34 mdw Exp $ # # Display and other fiddling of manual pages # @@ -28,6 +28,9 @@ #----- Revision history ----------------------------------------------------- # # $Log: SWMan.pm,v $ +# Revision 1.4 1999/08/24 12:15:34 mdw +# Properly sanitize CGI arguments (like `gtk+'). +# # Revision 1.3 1999/08/19 12:11:10 mdw # More improvements to URL recognizer. # @@ -106,8 +109,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)@ ---