Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
bd058b2f
Commit
bd058b2f
authored
Sep 25, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "lua http: fix valid uri handling with v2."
This reverts commit
06108030
.
parent
08de5c61
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
11 deletions
+4
-11
share/lua/http/js/controlers.js
share/lua/http/js/controlers.js
+2
-2
share/lua/intf/modules/httprequests.lua
share/lua/intf/modules/httprequests.lua
+2
-9
No files found.
share/lua/http/js/controlers.js
View file @
bd058b2f
...
...
@@ -195,7 +195,7 @@ function browse(dir){
case
'
#mobile
'
:
break
;
default
:
sendCommand
(
'
command=in_play&
v=2&
input=
'
+
encodeURIComponent
(
$
(
this
).
attr
(
'
openfile
'
)));
sendCommand
(
'
command=in_play&input=
'
+
encodeURIComponent
(
$
(
this
).
attr
(
'
openfile
'
)));
break
;
}
$
(
'
#window_browse
'
).
dialog
(
'
close
'
);
...
...
@@ -212,7 +212,7 @@ function browse(dir){
$
(
'
[openfile]
'
).
click
(
function
(){
switch
(
tgt
){
case
'
#mobile
'
:
sendCommand
(
'
command=in_play&
v=2&
input=
'
+
encodeURIComponent
(
$
(
this
).
attr
(
'
openfile
'
)),
"
window.location='mobile.html'
"
);
sendCommand
(
'
command=in_play&input=
'
+
encodeURIComponent
(
$
(
this
).
attr
(
'
openfile
'
)),
"
window.location='mobile.html'
"
);
break
;
default
:
break
;
...
...
share/lua/intf/modules/httprequests.lua
View file @
bd058b2f
...
...
@@ -71,12 +71,10 @@ processcommands = function ()
local
input
=
_GET
[
'input'
]
local
command
=
_GET
[
'command'
]
local
version
=
tonumber
(
_GET
[
'v'
]
or
1
)
local
id
=
tonumber
(
_GET
[
'id'
]
or
-
1
)
local
val
=
_GET
[
'val'
]
local
options
=
_GET
[
'option'
]
local
band
=
_GET
[
'band'
]
local
decodedpath
if
type
(
options
)
~=
"table"
then
-- Deal with the 0 or 1 option case
options
=
{
options
}
end
...
...
@@ -89,16 +87,11 @@ processcommands = function ()
end
vlc.msg.err( "</options>" )
--]]
if
version
==
2
then
decodedpath
=
input
else
decodedpath
=
stripslashes
(
input
)
end
vlc
.
playlist
.
add
({{
path
=
decodedpath
,
options
=
options
}})
vlc
.
playlist
.
add
({{
path
=
stripslashes
(
input
),
options
=
options
}})
elseif
command
==
"addsubtitle"
then
vlc
.
input
.
add_subtitle
(
stripslashes
(
val
))
elseif
command
==
"in_enqueue"
then
vlc
.
playlist
.
enqueue
({{
path
=
decodedpath
,
options
=
options
}})
vlc
.
playlist
.
enqueue
({{
path
=
stripslashes
(
input
)
,
options
=
options
}})
elseif
command
==
"pl_play"
then
if
id
==
-
1
then
vlc
.
playlist
.
play
()
...
...
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