*** ./mod_map_user.c.ORIG Mon Jan 7 15:30:29 2013 --- ./mod_map_user.c Mon Jan 7 15:30:54 2013 *************** *** 193,199 **** return 0; } ! //Inspired by parseargline and do_expand from mod_rewrite static int parseargline(char *str, char **a1, char **a2, char **a3) { --- 193,199 ---- return 0; } ! /* Inspired by parseargline and do_expand from mod_rewrite */ static int parseargline(char *str, char **a1, char **a2, char **a3) { *************** *** 413,431 **** int plen = 0; while (*p){ if (*p == '$') { ! //to lower: if (p[1] == 'l' || p[1] == 'L'){ p += 2; int il = 0; while (p[il] != '\0' && (p[il+1] != '$' || p[il+2] != 'n')) p[il++] = apr_tolower(p[il]); } ! //to upper: else if (p[1] == 'u' || p[1] == 'U'){ p += 2; int il = 0; while (p[il] != '\0' && (p[il+1] != '$' || p[il+2] != 'n')) p[il++] = apr_toupper(p[il]); } ! //no change: else if (p[1] == 'n' || p[1] == 'N') p += 2; else pout[plen++] = *(p++); --- 413,431 ---- int plen = 0; while (*p){ if (*p == '$') { ! /* to lower: */ if (p[1] == 'l' || p[1] == 'L'){ p += 2; int il = 0; while (p[il] != '\0' && (p[il+1] != '$' || p[il+2] != 'n')) p[il++] = apr_tolower(p[il]); } ! /* to upper: */ else if (p[1] == 'u' || p[1] == 'U'){ p += 2; int il = 0; while (p[il] != '\0' && (p[il+1] != '$' || p[il+2] != 'n')) p[il++] = apr_toupper(p[il]); } ! /* no change: */ else if (p[1] == 'n' || p[1] == 'N') p += 2; else pout[plen++] = *(p++);