Received: (qmail 83421 invoked by uid 501); 16 Oct 2000 17:32:46 -0000 Message-Id: <20001016173246.83420.qmail@locus.apache.org> Date: 16 Oct 2000 17:32:46 -0000 From: Laurent faillie Reply-To: l_faillie@yahoo.com To: submit@bugz.apache.org Subject: Apache may add a dummy '>' if a description had an '&' X-Send-Pr-Version: 3.110 >Number: 6698 >Category: mod_autoindex >Synopsis: Apache may add a dummy '>' if a description had an '&' >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon Oct 16 10:40:02 PDT 2000 >Closed-Date: >Last-Modified: Tue Jan 30 03:50:07 PST 2001 >Originator: l_faillie@yahoo.com >Release: 1.3.14 >Organization: apache >Environment: N/A >Description: I use a batch that create automaticaly "AddDescription" from documentation (so it's not easy to avoid such thing). Some of thoses descriptions have an '&' and it seens to confuse Apache in some situation. Looking in the code of mod_autoindex, it's the same thing this description holding '<' but it's needing to implement a real HTML parser to see if the '<' is meanfull or not ... But i haven't the time :-((( >How-To-Repeat: Create a simple description like AddDescription "Create the consolidations views & tables from JIT table" file An '>' is appended to the description in fancy indexing. >Fix: I know the solution is to convert '&' into '&' in description string (it's what i am doing in my batch for '<'). The for the case of '&', the following patch on mod_autoindex correct this problem and make Apache more 'flexible' (I duno if it's english :-) ). 1298a1299 > int ansx=x; 1303a1305,1307 > } else if(isspace(desc[x])){ > x=++ansx; > break; 1310a1315 >Release-Note: >Audit-Trail: From: =?iso-8859-1?q?Laurent=20FAILLIE?= To: apbugs@Apache.Org Cc: apbugs@Apache.Org Subject: mod_autoindex/6698: Apache may add a dummy '>' if a description has an '&' Date: Tue, 30 Jan 2001 03:49:08 -0800 (PST) This error still in v 1.3.17. Now mod_autoindex.c must look, starting at line 1302 else if (desc[x] == '&') { /* entities like ä count as one character */ int ansx=x; --maxsize; for ( ; desc[x] != ';'; ++x) { if (desc[x] == '\0') { maxsize = 0; break; } else if(isspace(desc[x])){ x=++ansx; break; } } } Someone take care of it ??? Bye Laurent ===== The misspelling master is on the Web. _________ / /( / Dico / / 100 % Dictionnary Free ! /________/ / (#######( / Quoi, des fautes d'orthographe! Pas possible ;-D. __________________________________________________ Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From: =?iso-8859-1?q?Laurent=20FAILLIE?= To: apbugs@Apache.Org Cc: apbugs@Apache.Org Subject: mod_autoindex/6698: Apache may add a dummy '>' if a description has an '&' Date: Tue, 30 Jan 2001 03:49:08 -0800 (PST) This error still in v 1.3.17. Now mod_autoindex.c must look, starting at line 1302 else if (desc[x] == '&') { /* entities like ä count as one character */ int ansx=x; --maxsize; for ( ; desc[x] != ';'; ++x) { if (desc[x] == '\0') { maxsize = 0; break; } else if(isspace(desc[x])){ x=++ansx; break; } } } Someone take care of it ??? Bye Laurent ===== The misspelling master is on the Web. _________ / /( / Dico / / 100 % Dictionnary Free ! /________/ / (#######( / Quoi, des fautes d'orthographe! Pas possible ;-D. __________________________________________________ Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]