From: Cliff Woolley Date: Sun, 21 Apr 2002 19:10:07 +0000 (+0000) Subject: Fix HTML 3.2 validation error: &O is not a valid entity. Should be &O X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca2b21126ca3b1549b58c6ad570e00665e6adb30;p=apache Fix HTML 3.2 validation error: &O is not a valid entity. Should be &O Reported by: validator.w3.org git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94740 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/mod_autoindex.c b/modules/generators/mod_autoindex.c index a2f0cd61e7..455b3b347c 100644 --- a/modules/generators/mod_autoindex.c +++ b/modules/generators/mod_autoindex.c @@ -1441,7 +1441,7 @@ static void emit_link(request_rec *r, const char *anchor, char column, char curkey, char curdirection, const char *colargs, int nosort) { - char qvalue[9]; + char qvalue[13]; int reverse; if (!nosort) { @@ -1451,10 +1451,14 @@ static void emit_link(request_rec *r, const char *anchor, char column, qvalue[2] = '='; qvalue[3] = column; qvalue[4] = '&'; - qvalue[5] = 'O'; - qvalue[6] = '='; - qvalue[7] = reverse ? D_DESCENDING : D_ASCENDING; - qvalue[8] = '\0'; + qvalue[5] = 'a'; + qvalue[6] = 'm'; + qvalue[7] = 'p'; + qvalue[8] = ';'; + qvalue[9] = 'O'; + qvalue[10] = '='; + qvalue[11] = reverse ? D_DESCENDING : D_ASCENDING; + qvalue[12] = '\0'; ap_rvputs(r, "", anchor, "", NULL); }