directive mis-parsing parens in pathname.
PR: 47945
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@829185
13f79535-47bb-0310-9956-
ffa450edef68
mod_proxy_ftp: NULL pointer dereference on error paths.
[Stefan Fritsch <sf fritsch.de>, Joe Orton]
+ *) mod_socache_shmcb: Only parse cache size in parens at the end of the
+ string. Fixes SSLSessionCache directive mis-parsing parens in pathname.
+ PR 47945. [Stefan Fritsch]
+
*) htpasswd: Improve out of disk space handling. PR 30877. [Stefan Fritsch]
*) htpasswd: Use MD5 hash by default on all platforms. [Stefan Fritsch]
ctx->data_file = path = ap_server_root_relative(p, arg);
- cp = strchr(path, '(');
- if (cp) {
+ cp = strrchr(path, '(');
+ cp2 = path + strlen(path) - 1;
+ if (cp && (*cp2 == ')')) {
*cp++ = '\0';
-
- if (!(cp2 = strchr(cp, ')'))) {
- return "Invalid argument: no closing parenthesis";
- }
-
- *cp2 = '\0';
+ *cp2 = '\0';
ctx->shm_size = atoi(cp);