mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Correct the value of request_uri
This commit is contained in:
parent
c3fb9680ec
commit
54790b5e63
@ -320,7 +320,7 @@ JNIEXPORT jlong JNICALL Java_net_php_servlet_define
|
||||
JNIEXPORT void JNICALL Java_net_php_servlet_send
|
||||
(JNIEnv *jenv, jobject self,
|
||||
jstring requestMethod, jstring queryString,
|
||||
jstring pathInfo, jstring pathTranslated,
|
||||
jstring requestURI, jstring pathTranslated,
|
||||
jstring contentType, jint contentLength,
|
||||
jstring authUser, jboolean display_source_mode)
|
||||
{
|
||||
@ -354,7 +354,7 @@ JNIEXPORT void JNICALL Java_net_php_servlet_send
|
||||
SETSTRING( SG(request_info).auth_user, authUser );
|
||||
SETSTRING( SG(request_info).request_method, requestMethod );
|
||||
SETSTRING( SG(request_info).query_string, queryString );
|
||||
SETSTRING( SG(request_info).request_uri, pathInfo );
|
||||
SETSTRING( SG(request_info).request_uri, requestURI );
|
||||
SETSTRING( SG(request_info).content_type, contentType );
|
||||
SG(request_info).content_length = contentLength;
|
||||
SG(request_info).auth_password = NULL;
|
||||
|
@ -160,7 +160,7 @@ public class servlet extends HttpServlet {
|
||||
String contextPath=getServletContext().getRealPath(servletPath);
|
||||
|
||||
send(request.getMethod(), request.getQueryString(),
|
||||
request.getPathInfo(), contextPath,
|
||||
request.getRequestURI(), contextPath,
|
||||
request.getContentType(), request.getContentLength(),
|
||||
request.getRemoteUser(), display_source_mode);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user