Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
89cbc196
Commit
89cbc196
authored
Jun 18, 2008
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add xml_encode to http-control rpn, so status/playlist.xml can be easier
be valid xml without str_replace-stuff.
parent
c49d1212
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
modules/control/http/rpn.c
modules/control/http/rpn.c
+8
-0
share/http/requests/playlist.xml
share/http/requests/playlist.xml
+2
-2
share/http/requests/status.xml
share/http/requests/status.xml
+2
-2
No files found.
modules/control/http/rpn.c
View file @
89cbc196
...
@@ -370,6 +370,14 @@ void EvaluateRPN( intf_thread_t *p_intf, mvar_t *vars,
...
@@ -370,6 +370,14 @@ void EvaluateRPN( intf_thread_t *p_intf, mvar_t *vars,
SSPush
(
st
,
value
);
SSPush
(
st
,
value
);
free
(
value
);
free
(
value
);
}
}
else
if
(
!
strcmp
(
s
,
"xml_encode"
)
)
{
char
*
url
=
SSPop
(
st
);
char
*
value
=
convert_xml_special_chars
(
url
);
free
(
url
);
SSPush
(
st
,
value
);
free
(
value
);
}
else
if
(
!
strcmp
(
s
,
"addslashes"
)
)
else
if
(
!
strcmp
(
s
,
"addslashes"
)
)
{
{
char
*
psz_src
=
SSPop
(
st
);
char
*
psz_src
=
SSPop
(
st
);
...
...
share/http/requests/playlist.xml
View file @
89cbc196
...
@@ -35,9 +35,9 @@
...
@@ -35,9 +35,9 @@
<vlc
id=
"end"
/>
<vlc
id=
"end"
/>
<vlc
id=
"if"
param1=
"pl.type value 'Node' strcmp"
/>
<vlc
id=
"if"
param1=
"pl.type value 'Node' strcmp"
/>
<vlc
id=
"rpn"
param1=
"1 +"
/>
<vlc
id=
"rpn"
param1=
"1 +"
/>
<leaf
id=
"<vlc id="
value"
param1=
"pl.index"
/>
"
<vlc
id=
"if"
param1=
"pl.current"
/>
current="current"
<vlc
id=
"end"
/>
uri="
<vlc
id=
"value"
param1=
"pl.uri
value '&' '&' str_replace"
/>
" name="
<vlc
id=
"value"
param1=
"pl.name value '&' '&' str_replac
e"
/>
" ro="
<vlc
id=
"value"
param1=
"pl.ro"
/>
" duration="
<vlc
id=
"value"
param1=
"pl.duration"
/>
" />
<leaf
id=
"<vlc id="
value"
param1=
"pl.index"
/>
"
<vlc
id=
"if"
param1=
"pl.current"
/>
current="current"
<vlc
id=
"end"
/>
uri="
<vlc
id=
"value"
param1=
"pl.uri
xml_encode"
/>
" name="
<vlc
id=
"value"
param1=
"pl.name xml_encod
e"
/>
" ro="
<vlc
id=
"value"
param1=
"pl.ro"
/>
" duration="
<vlc
id=
"value"
param1=
"pl.duration"
/>
" />
<vlc
id=
"else"
/>
<vlc
id=
"else"
/>
<node
id=
"<vlc id="
value"
param1=
"pl.index"
/>
" name="
<vlc
id=
"value"
param1=
"pl.name
value '&' '&' str_replac
e"
/>
" ro="
<vlc
id=
"value"
param1=
"pl.ro"
/>
" >
<node
id=
"<vlc id="
value"
param1=
"pl.index"
/>
" name="
<vlc
id=
"value"
param1=
"pl.name
xml_encod
e"
/>
" ro="
<vlc
id=
"value"
param1=
"pl.ro"
/>
" >
<vlc
id=
"if"
param1=
"first_item value 0 ="
/>
<vlc
id=
"if"
param1=
"first_item value 0 ="
/>
<vlc
id=
"rpn"
param1=
"first_item 1 store"
/>
<vlc
id=
"rpn"
param1=
"first_item 1 store"
/>
<vlc
id=
"end"
/>
<vlc
id=
"end"
/>
...
...
share/http/requests/status.xml
View file @
89cbc196
...
@@ -117,9 +117,9 @@
...
@@ -117,9 +117,9 @@
<repeat><vlc
id=
"value"
param1=
"'repeat' 'VLC_OBJECT_PLAYLIST' vlc_var_get"
/></repeat>
<repeat><vlc
id=
"value"
param1=
"'repeat' 'VLC_OBJECT_PLAYLIST' vlc_var_get"
/></repeat>
<information>
<information>
<vlc
id=
"foreach"
param1=
"inf"
param2=
"information"
/>
<vlc
id=
"foreach"
param1=
"inf"
param2=
"information"
/>
<category
name=
"<vlc id="
value"
param1=
"inf.name"
/>
">
<category
name=
"<vlc id="
value"
param1=
"inf.name
xml_encode
"
/>
">
<vlc
id=
"foreach"
param1=
"subinf"
param2=
"inf.info"
/>
<vlc
id=
"foreach"
param1=
"subinf"
param2=
"inf.info"
/>
<info
name=
"<vlc id="
value"
param1=
"subinf.name
"
/>
">
<vlc
id=
"value"
param1=
"subinf.valu
e"
/></info>
<info
name=
"<vlc id="
value"
param1=
"subinf.name
xml_encode"
/>
">
<vlc
id=
"value"
param1=
"subinf.value xml_encod
e"
/></info>
<vlc
id=
"end"
/>
<vlc
id=
"end"
/>
</category>
</category>
<vlc
id=
"end"
/>
<vlc
id=
"end"
/>
...
...
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