Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
6fb62dd1
Commit
6fb62dd1
authored
Aug 30, 2005
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/control/http/http.c: Fixed argv[1] in CGI mode.
parent
ae029eca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
modules/control/http/http.c
modules/control/http/http.c
+8
-8
No files found.
modules/control/http/http.c
View file @
6fb62dd1
...
...
@@ -618,7 +618,7 @@ int E_(HandlerCallback)( httpd_handler_sys_t *p_args,
char
sep
;
int
i_buffer
;
char
*
p_buffer
;
char
*
psz_cwd
;
char
*
psz_cwd
,
*
psz_file
=
NULL
;
int
i_ret
;
#ifdef WIN32
...
...
@@ -731,16 +731,16 @@ int E_(HandlerCallback)( httpd_handler_sys_t *p_args,
}
}
p
=
strrchr
(
p_args
->
file
.
file
,
sep
);
if
(
p
!=
NULL
)
p
sz_file
=
strrchr
(
p_args
->
file
.
file
,
sep
);
if
(
p
sz_file
!=
NULL
)
{
p
++
;
psz_tmp
=
malloc
(
sizeof
(
"SCRIPT_FILENAME="
)
+
strlen
(
p
)
);
sprintf
(
psz_tmp
,
"SCRIPT_FILENAME=%s"
,
p
);
p
sz_file
++
;
psz_tmp
=
malloc
(
sizeof
(
"SCRIPT_FILENAME="
)
+
strlen
(
p
sz_file
)
);
sprintf
(
psz_tmp
,
"SCRIPT_FILENAME=%s"
,
p
sz_file
);
TAB_APPEND
(
i_env
,
ppsz_env
,
psz_tmp
);
TAB_APPEND
(
p_args
->
p_association
->
i_argc
,
p_args
->
p_association
->
ppsz_argv
,
p
);
p_args
->
p_association
->
ppsz_argv
,
p
sz_file
);
}
TAB_APPEND
(
i_env
,
ppsz_env
,
NULL
);
...
...
@@ -767,7 +767,7 @@ int E_(HandlerCallback)( httpd_handler_sys_t *p_args,
TAB_REMOVE
(
p_args
->
p_association
->
i_argc
,
p_args
->
p_association
->
ppsz_argv
,
NULL
);
TAB_REMOVE
(
p_args
->
p_association
->
i_argc
,
p_args
->
p_association
->
ppsz_argv
,
p
_args
->
file
.
file
);
p
sz_
file
);
if
(
psz_cwd
!=
NULL
)
free
(
psz_cwd
);
while
(
i_env
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment