Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jul 2003 22:17:24 +0200
From:      "Simon L. Nielsen" <simon@nitro.dk>
To:        Ceri Davies <ceri@FreeBSD.org>, Martin Jakob <m.jakob@gmx.net>, freebsd-ports@freebsd.org
Subject:   Re: ports.cgi doesn't handle html tags?
Message-ID:  <20030718201724.GG415@nitro.dk>
In-Reply-To: <20030718193112.GB37280@submonkey.net>
References:  <14091.1058550759@www66.gmx.net> <20030718193112.GB37280@submonkey.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--QWpDgw58+k1mSFBj
Content-Type: multipart/mixed; boundary="QNDPHrPUIc00TOLW"
Content-Disposition: inline


--QNDPHrPUIc00TOLW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2003.07.18 20:31:12 +0100, Ceri Davies wrote:
> On Fri, Jul 18, 2003 at 07:52:39PM +0200, Martin Jakob wrote:
> > Hi,=20
> >=20
> > while searching for php-pear ports (see previous mail :) via
> > http://www.freebsd.org/ports i got a not complete rendered page. I thin=
k the culprit is the
> > <select> tag in the pear-HTML_Select_Common-1.1_2 port description. It =
seems
> > the tags are not filtered.
>=20
> Could you please file this as a PR?

It seemed like a quick fix, and it was; so here is a path which fixes
the problem :-)...

--=20
Simon L. Nielsen

--QNDPHrPUIc00TOLW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="www-portscgi-escapetags.patch"
Content-Transfer-Encoding: quoted-printable

Index: ports.cgi
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/ncvs/www/en/cgi/ports.cgi,v
retrieving revision 1.66
diff -u -d -r1.66 ports.cgi
--- ports.cgi	15 May 2003 12:08:05 -0000	1.66
+++ ports.cgi	18 Jul 2003 20:16:06 -0000
@@ -345,6 +345,8 @@
        }
     }
     $descfile =3D~ s/^$localPrefix/$remotePrefixFtp/o;
+    $comment =3D~ s/</\&lt;/g;
+    $comment =3D~ s/>/\&gt;/g;
=20
     print qq{<DT><B><A NAME=3D"$version">$version</A></B>\n};
     print qq{<DD>$comment<BR>\n};

--QNDPHrPUIc00TOLW--

--QWpDgw58+k1mSFBj
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE/GFXU8kocFXgPTRwRAhwXAJ9lqMcbtr9v0QANAinXgNc+R/rWBQCcDR5A
GMFbAVT8ie2cNKIizE+B+S4=
=Aaat
-----END PGP SIGNATURE-----

--QWpDgw58+k1mSFBj--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030718201724.GG415>