Re: Help installing the validator--all pages not valid but no errors

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ed Martin <edman007x@mac.com> wrote:

>and what do you mean "set the proper configuration options to ensure
>onsgmls searches in the right place" the validator conf file? that is
>set right as far as i know

The configuration setting in the validator.conf file named "SGML Library" must
be set to the «sgml-lib/» directory from the validator distribution. By
default it's in «validator/htdocs/sgml-lib/», but it must match even if you've
moved it elsewhere.


The «-R» switch to OpenSP (onsgmls) restricts file reading to only the
configured directories (to prevent a remote file disclosure vulnerability when
presented with specially crafted input). The path set for «SGML Library» is
used as the permitted directory to search.

IOW, if «SGML Library» is not set correctly, OpenSP will refuse to read any of
the supporting files (the DTD, the Catalog, entity definitions, the SGML
Declaration, etc.) reslting in non-sensical output like what you are seeing.


I haven't found any good way to detect this situation and report a meaningfull
error (then again, I haven't really given it much thought) so if anyone has
suggestions — or maybe even patches :-) — I'd be very happy to hear about it.


- -- 
 "Oh, my. What? Did I hurt your little, iddy, biddy feelings widdle MCSE
  kind of person?"                                       -- Tina Holmboe

-----BEGIN PGP SIGNATURE-----
Version: PGP SDK 3.0.3

iQA/AwUBQB1TlKPyPrIkdfXsEQJFUQCfZle3s6Zlc/UCcJMpkcP1gLPYA0kAoLR4
oc2YVLqH2mIlevl1Rcze0NqJ
=vgQA
-----END PGP SIGNATURE-----

Received on Sunday, 1 February 2004 14:29:52 UTC