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) {
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) {
......
......@@ -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>
......
......@@ -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',
);
......
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