ASF Bugzilla – Attachment 35297 Details for
Bug 61189
CGIServlet should be able to set specific environment variables
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Variable name in <param-name>.
CGIServlet.java.AdditionalEnvironmentVariables3.patch (text/plain), 1.00 KB, created by
jm009
on 2017-09-05 20:16:25 UTC
(
hide
)
Description:
Variable name in <param-name>.
Filename:
MIME Type:
Creator:
jm009
Created:
2017-09-05 20:16:25 UTC
Size:
1.00 KB
patch
obsolete
>Index: java/org/apache/catalina/servlets/CGIServlet.java >=================================================================== >--- java/org/apache/catalina/servlets/CGIServlet.java (revision 1807323) >+++ java/org/apache/catalina/servlets/CGIServlet.java (working copy) >@@ -311,6 +311,16 @@ > shellEnv.putAll(System.getenv()); > } > >+ for (Enumeration<String> e = config.getInitParameterNames(); e.hasMoreElements(); ) { >+ String initParamName = e.nextElement(); >+ if (initParamName.startsWith("environment-variable-")) { >+ if (initParamName.length() == 21) { >+ throw new ServletException("Empty var name in 'environment-variable-'."); >+ } >+ shellEnv.put(initParamName.substring(21), config.getInitParameter(initParamName)); >+ } >+ } >+ > if (getServletConfig().getInitParameter("executable") != null) { > cgiExecutable = getServletConfig().getInitParameter("executable"); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 61189
:
35291
|
35296
| 35297