From: Alexey Nogin (ayn2@cornell.edu)
Date: Mon Nov 22 1999 - 18:14:44 EST
-----BEGIN PGP SIGNED MESSAGE-----
Hi,
Currently (rpm2html-1.2 and rpm2html-CVS), when converting "Packager",
"Vendor", "Group" and similar fields into file names, rpm2html converts
space and slash into an underscore and leaves all the other characters
intact. Later, rpm2html creates links to those files and does not make any
attempt to "URL-encode" any of those links.
This creates the following problems:
1) If one of those fields contains a quote (for example - Packager:
Jan_"Yenya"_Kasprzak_<kas@fi.muni.cz>.html), the quotation mark is
erroneously interpreted by some browsers (e.g. Netscape) as the end of the
link...
2) Some filesystems do not allow filenames to contain some characters...
For example, I put rpm2html output on NT server over NFS (unfortunatelly I
do not have other choice) and it would not accept <, > or : in file names.
I attach a patch (works against both 1.2 and CVS) that
a) Replaces all instances of character-replacing code with a single one
for easier customization.
b) Make the list of characters replaced by underscores bigger (probably
still not big enough, but fixes all problems I was facing).
Alexey
- --------------------------------------------------------------
Home Page: http://www.cs.cornell.edu/nogin/
E-Mail: nogin@cs.cornell.edu (office), ayn2@cornell.edu (home)
Office: Upson 4139, tel: 1-607-255-4934
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iQEVAwUBODnOZZXjz5AN18LFAQE4UAgAssuFR+Pwe0epjgUrCmvX35XRzh5ZuPOB
jEDUYF0kSUOsasYFOZ3pkqgsVh5hHmng+ZqEw2weY6Y3mwFYXVUEEpvb5wMwn0wE
GuGFNJjbv6V5/Mk3N2uFukauOk3eqnzAeBCMK/r9rWGVqgKHECy5++kaI/II+iTX
wEA/WK8QpUq2U7fyPFJtv49pwHV7CMnJ1Vlu0I14QweQCtq4Wo1FrHStQauUoJCz
Uvc5cR6cGxBr46g96lnrHEEp3l9hX0OZlPP/N9hJQYZ/YG6dCS9KtNf8/DI/lrEu
uzIcWmGQphe2/tsq2NxIsQmLQx1EAPFKGkIdfaV4wHziJSZ7D5Kbtw==
=niQx
-----END PGP SIGNATURE-----
This archive was generated by hypermail 2b29 : Thu May 10 2001 - 18:40:11 EDT