Commit 44015de6 authored by Dave Reid's avatar Dave Reid

Fixed URL added to the XSL title without being sanitized.

parent 8003099f
...@@ -23,9 +23,9 @@ function initXsl(tabName,fileType) { ...@@ -23,9 +23,9 @@ function initXsl(tabName,fileType) {
initTable(tabName); initTable(tabName);
} }
var theURL = document.getElementById("head1"); var theURL = $("#head1");
theURL.innerHTML += ' ' + location; theURL.text(theURL.text() + ': ' + location);
document.title += ': ' + location; document.title = theURL.text();
} }
function initTable(tabName) { function initTable(tabName) {
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
<html> <html>
<head> <head>
<title>Sitemap file</title> <title>Sitemap file</title>
<script type="text/javascript" src="[jquery]"></script>
<script type="text/javascript" src="[xsl-js]"></script> <script type="text/javascript" src="[xsl-js]"></script>
<link href="[xsl-css]" type="text/css" rel="stylesheet"/> <link href="[xsl-css]" type="text/css" rel="stylesheet"/>
</head> </head>
......
...@@ -287,6 +287,7 @@ function xmlsitemap_output_xsl() { ...@@ -287,6 +287,7 @@ function xmlsitemap_output_xsl() {
'URL location' => t('URL location'), 'URL location' => t('URL location'),
'Change frequency' => t('Change frequency'), 'Change frequency' => t('Change frequency'),
'Priority' => t('Priority'), 'Priority' => t('Priority'),
'[jquery]' => base_path() . 'misc/jquery.js',
'[xsl-js]' => base_path() . $module_path . '/gss/gss.js', '[xsl-js]' => base_path() . $module_path . '/gss/gss.js',
'[xsl-css]' => base_path() . $module_path . '/gss/gss.css', '[xsl-css]' => base_path() . $module_path . '/gss/gss.css',
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment