From a0d738e5addfbee866c5b5185d14d74a43d51b11 Mon Sep 17 00:00:00 2001
From: Casper van Donderen
Date: Fri, 21 Oct 2011 12:18:54 +0200
Subject: Fix security issue on website due to bad JS.
Reviewed-by: Trust Me
---
doc/src/template/scripts/functions.js | 13 +------------
tools/qdoc3/doc/config/scripts/functions.js | 13 +------------
tools/qdoc3/test/qt-html-templates-online.qdocconf | 13 -------------
tools/qdoc3/test/qt-html-templates_ja_JP-online.qdocconf | 11 -----------
tools/qdoc3/test/qt-html-templates_zh_CN-online.qdocconf | 11 -----------
5 files changed, 2 insertions(+), 59 deletions(-)
diff --git a/doc/src/template/scripts/functions.js b/doc/src/template/scripts/functions.js
index 3ab4a08..af204d8 100755
--- a/doc/src/template/scripts/functions.js
+++ b/doc/src/template/scripts/functions.js
@@ -183,17 +183,6 @@ var blankRE=/^\s*$/;
function CheckEmptyAndLoadList()
{
- /* Start Extracting information for feedback and adding this to the feedback form */
- var pageUrl = window.location.pathname;
- var pageVal = $('title').html();
- $('#pageType').removeClass('red');
- $('#feedUrl').remove();
- $('#pageVal').remove();
- $('.menuAlert').remove();
- $('#feedform').append('');
- $('#feedform').append('');
- /* End Extracting information for feedback and adding this to the feedback form */
-
/* extracts search query */
var value = document.getElementById('pageType').value;
/* if the search is less than three chars long remove class names and remove elements from old search*/
@@ -255,4 +244,4 @@ function CheckEmptyAndLoadList()
});
}, 500); /* timer set to 500 ms */
});
- });
\ No newline at end of file
+ });
diff --git a/tools/qdoc3/doc/config/scripts/functions.js b/tools/qdoc3/doc/config/scripts/functions.js
index 62bc535..af204d8 100755
--- a/tools/qdoc3/doc/config/scripts/functions.js
+++ b/tools/qdoc3/doc/config/scripts/functions.js
@@ -183,17 +183,6 @@ var blankRE=/^\s*$/;
function CheckEmptyAndLoadList()
{
- /* Start Extracting information for feedback and adding this to the feedback form */
- var pageUrl = window.location.href;
- var pageVal = $('title').html();
- $('#pageType').removeClass('red');
- $('#feedUrl').remove();
- $('#pageVal').remove();
- $('.menuAlert').remove();
- $('#feedform').append('');
- $('#feedform').append('');
- /* End Extracting information for feedback and adding this to the feedback form */
-
/* extracts search query */
var value = document.getElementById('pageType').value;
/* if the search is less than three chars long remove class names and remove elements from old search*/
@@ -255,4 +244,4 @@ function CheckEmptyAndLoadList()
});
}, 500); /* timer set to 500 ms */
});
- });
\ No newline at end of file
+ });
diff --git a/tools/qdoc3/test/qt-html-templates-online.qdocconf b/tools/qdoc3/test/qt-html-templates-online.qdocconf
index 3584b68..073f1aa 100644
--- a/tools/qdoc3/test/qt-html-templates-online.qdocconf
+++ b/tools/qdoc3/test/qt-html-templates-online.qdocconf
@@ -142,8 +142,6 @@ HTML.postpostheader = \
"
\n"
HTML.footer = \
- "
\n" \
- " [+] Documentation Feedback
\n" \
"
\n" \
" \n" \
" \n" \
@@ -169,16 +167,5 @@ HTML.footer = \
" Free Documentation License version 1.3\n" \
" as published by the Free Software Foundation.
\n" \
@@ -164,13 +162,4 @@ HTML.footer = \
" Alternatively, this document may be used under the terms of the GNU\n" \
" Free Documentation License version 1.3\n" \
" as published by the Free Software Foundation.\n" \
- "
\n" \
@@ -164,13 +162,4 @@ HTML.footer = \
" Alternatively, this document may be used under the terms of the GNU\n" \
" Free Documentation License version 1.3\n" \
" as published by the Free Software Foundation.\n" \
- "