Bug report: unknown options

HTML Tidy for Linux/x86 released on 1st August 2004

Tidy happens to overwrite the original file in presence of unknown options.
As tidy doesn't distinguish long options and multiple one character options
the usage of unknown options or misspelling may leed to data corruption.

Example:

$ tidy -xhtml index.html
HTML Tidy: unknown option: x
HTML Tidy: unknown option: h
HTML Tidy: unknown option: t
HTML Tidy: unknown option: l
....

Tidy will modify the original file but it is not supposed to.
As a fix I suggest, tidy should abort with an error message in presence of
unknown options.

Regards
Detlef

-- 
=======================================
Detlef Rick <d.rick@freenet.de>
Hohe Str. 31, 21073 Hamburg, Germany
Tel.: +49 40 7656974
========================DON'T=PANIC====

Received on Friday, 10 December 2004 16:28:43 UTC