Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
20ab9122
Commit
20ab9122
authored
Sep 15, 2009
by
Nigel McNie
Browse files
Escape mimetype/src of content.
It's a sneaky RichardM. Signed-off-by:
Nigel McNie
<
nigel@catalyst.net.nz
>
parent
77e1e7f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/export/leap/theme/raw/entry.tpl
View file @
20ab9122
...
...
@@ -11,7 +11,7 @@
{/
if
}
{
if
$summary
}
<summary
{
if
$summarytype
!=
'text'
}
type=
"
{
$summarytype
}
"
{/
if
}
>
{
if
$summarytype
==
'xhtml'
}
<div
xmlns=
"http://www.w3.org/1999/xhtml"
>
{/
if
}{
if
$summarytype
==
'xhtml'
}{
$summary
|
clean_html
|
export_leap_rewrite_links
}{
elseif
$summarytype
==
'html'
}{
$summary
|
clean_html
|
export_leap_rewrite_links
|
escape
}{
else
}{
$summary
|
escape
}{/
if
}{
if
$summarytype
==
'xhtml'
}
</div>
{/
if
}
</summary>
{/
if
}
<content
{
if
$contenttype
!=
'text'
}
type=
"
{
$contenttype
}
"
{/
if
}{
if
$contentsrc
}
src=
"
{
$contentsrc
}
"
{/
if
}
>
{
if
$contenttype
==
'xhtml'
}
<div
xmlns=
"http://www.w3.org/1999/xhtml"
>
{/
if
}{
if
$contenttype
==
'xhtml'
}{
$content
|
clean_html
|
export_leap_rewrite_links
}{
elseif
$contenttype
==
'html'
}{
$content
|
clean_html
|
export_leap_rewrite_links
|
escape
}{
else
}{
$content
|
escape
}{/
if
}{
if
$contenttype
==
'xhtml'
}
</div>
{/
if
}
</content>
<content
{
if
$contenttype
!=
'text'
}
type=
"
{
$contenttype
|
escape
}
"
{/
if
}{
if
$contentsrc
}
src=
"
{
$contentsrc
|
escape
}
"
{/
if
}
>
{
if
$contenttype
==
'xhtml'
}
<div
xmlns=
"http://www.w3.org/1999/xhtml"
>
{/
if
}{
if
$contenttype
==
'xhtml'
}{
$content
|
clean_html
|
export_leap_rewrite_links
}{
elseif
$contenttype
==
'html'
}{
$content
|
clean_html
|
export_leap_rewrite_links
|
escape
}{
else
}{
$content
|
escape
}{/
if
}{
if
$contenttype
==
'xhtml'
}
</div>
{/
if
}
</content>
<rdf:type
rdf:resource=
"leaptype:
{
$leaptype
}
"
/>
{
if
$artefacttype
}
<mahara:artefactplugin
mahara:type=
"
{
$artefacttype
}
"
mahara:plugin=
"
{
$artefactplugin
}
"
/>
{/
if
}
...
...
Write
Preview
Supports
Markdown
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