Since QSNONE will skip splitoutqueryargs, it's where we should fixup the trailing ?
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1910662 13f79535-47bb-0310-9956-
ffa450edef68
}
if (*(a2_end-1) == '?') {
- *(a2_end-1) = '\0'; /* trailing ? has done its job */
/* a literal ? at the end of the unsubstituted rewrite rule */
- if (!(newrule->flags & RULEFLAG_QSAPPEND))
- {
+ if (!(newrule->flags & RULEFLAG_QSAPPEND)) {
+ /* trailing ? has done its job. with QSA, splitoutqueryargs
+ * will handle it
+ */
+ *(a2_end-1) = '\0';
newrule->flags |= RULEFLAG_QSNONE;
}
}