We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ef959be + c68480b commit c3518d7Copy full SHA for c3518d7
1 file changed
cgi-bin/admin.c
@@ -2080,6 +2080,10 @@ do_list_printers(http_t *http) /* I - HTTP connection */
2080
else if (*ptr == '?' || *ptr == '(')
2081
break;
2082
2083
+ // Remove the underscore if it is the last and not the only character
2084
+ if (option_ptr > (option + 1) && option_ptr[-1] == '_')
2085
+ option_ptr--;
2086
+
2087
*option_ptr = '\0';
2088
2089
cgiSetArray("TEMPLATE_NAME", i, option);
0 commit comments