>>From: Jose Abilio Oliveira Matos <[EMAIL PROTECTED]> >>To: [EMAIL PROTECTED] >>Subject: Re: 1.1.6fix4 / docbook_template: bug in SGML export on URLs containing "&" >>Date: Fri, 1 Feb 2002 10:17:23 +0000 >> >>On Wednesday 30 January 2002 22:06, Peter Bieringer wrote: >>> Hi, >>> >>> during writing a LDP howto I ran into a strange bug. >>> I've subscribed to the users-list because I don't want to get all the >>> dev-traffic - hopefully someone can help me here also. >>> >>> Version 1.1.6fix4 is rebuilded today from available SRPMS. >>> >>> Topic: LyX doesn't "escape" "&" chars in exported URLs, but nsgmls >>> don't like this: >> >> Thanks for reporting that bug. Actually I think that nsgmls only outputs a >>warning. >> >>[bug report] >> >>> possible fix: >>> >>> manual replace of "&" with "&" >> >> The correct fix is to escape all the chars inside the url, usually the only >>one that gives trouble is &, as I don't expect < and > to be present inside >>any url. Actually I think that & is not allowed also, but I know lots of url >>that use them so...
& is heavily used in CGI scripting using GET method (separator between name=value pairs) and is thus perfectly legal in URLs as a special character. As a consequence, & should never be used in an URL as a plain character, which must be « url_encoded » (%26 AFAIR). -- Jean-Pierre