Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
X
xmlsitemap
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
2
Merge Requests
2
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
xmlsitemap
Commits
44015de6
Commit
44015de6
authored
May 25, 2016
by
Dave Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed URL added to the XSL title without being sanitized.
parent
8003099f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
gss/gss.js
gss/gss.js
+3
-3
gss/gss.xsl
gss/gss.xsl
+1
-0
xmlsitemap.pages.inc
xmlsitemap.pages.inc
+1
-0
No files found.
gss/gss.js
View file @
44015de6
...
...
@@ -23,9 +23,9 @@ function initXsl(tabName,fileType) {
initTable
(
tabName
);
}
var
theURL
=
document
.
getElementById
(
"
head1
"
);
theURL
.
innerHTML
+=
'
'
+
location
;
document
.
title
+=
'
:
'
+
location
;
var
theURL
=
$
(
"
#
head1
"
);
theURL
.
text
(
theURL
.
text
()
+
'
:
'
+
location
)
;
document
.
title
=
theURL
.
text
()
;
}
function
initTable
(
tabName
)
{
...
...
gss/gss.xsl
View file @
44015de6
...
...
@@ -15,6 +15,7 @@
<html>
<head>
<title>
Sitemap file
</title>
<script
type=
"text/javascript"
src=
"[jquery]"
></script>
<script
type=
"text/javascript"
src=
"[xsl-js]"
></script>
<link
href=
"[xsl-css]"
type=
"text/css"
rel=
"stylesheet"
/>
</head>
...
...
xmlsitemap.pages.inc
View file @
44015de6
...
...
@@ -287,6 +287,7 @@ function xmlsitemap_output_xsl() {
'URL location'
=>
t
(
'URL location'
),
'Change frequency'
=>
t
(
'Change frequency'
),
'Priority'
=>
t
(
'Priority'
),
'[jquery]'
=>
base_path
()
.
'misc/jquery.js'
,
'[xsl-js]'
=>
base_path
()
.
$module_path
.
'/gss/gss.js'
,
'[xsl-css]'
=>
base_path
()
.
$module_path
.
'/gss/gss.css'
,
);
...
...
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