forked from qt-creator/qt-creator
Doc: fix security issue in HTML template
Change-Id: I2fbcb030195a9104eeba8b83037623103efdb5c0 Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
This commit is contained in:
committed by
Casper van Donderen
parent
49e56cdd2c
commit
ecfef3c2e1
@@ -96,8 +96,6 @@ HTML.postpostheader = \
|
|||||||
" <div class=\"content mainContent\">\n"
|
" <div class=\"content mainContent\">\n"
|
||||||
|
|
||||||
HTML.footer = \
|
HTML.footer = \
|
||||||
" <div class=\"feedback t_button\">\n" \
|
|
||||||
" [+] Documentation Feedback</div>\n" \
|
|
||||||
" </div>\n" \
|
" </div>\n" \
|
||||||
" </div>\n" \
|
" </div>\n" \
|
||||||
" </div> \n" \
|
" </div> \n" \
|
||||||
@@ -123,17 +121,6 @@ HTML.footer = \
|
|||||||
" Free Documentation License version 1.3</a>\n" \
|
" Free Documentation License version 1.3</a>\n" \
|
||||||
" as published by the Free Software Foundation.</p>\n" \
|
" as published by the Free Software Foundation.</p>\n" \
|
||||||
" </div>\n" \
|
" </div>\n" \
|
||||||
" <div id=\"feedbackBox\">\n" \
|
|
||||||
" <div id=\"feedcloseX\" class=\"feedclose t_button\">X</div>\n" \
|
|
||||||
" <form id=\"feedform\" action=\"http://doc.qt.nokia.com/docFeedbck/feedback.php\" method=\"get\">\n" \
|
|
||||||
" <p id=\"noteHead\">Thank you for giving your feedback.</p> <p class=\"note\">Make sure it is related to this specific page. For more general bugs and \n" \
|
|
||||||
" requests, please use the <a href=\"https://bugreports.qt.nokia.com/secure/Dashboard.jspa\">Qt Bug Tracker</a>.</p>\n" \
|
|
||||||
" <p><textarea id=\"feedbox\" name=\"feedText\" rows=\"5\" cols=\"40\"></textarea></p>\n" \
|
|
||||||
" <p><input id=\"feedsubmit\" class=\"feedclose\" type=\"submit\" name=\"feedback\" /></p>\n" \
|
|
||||||
" </form>\n" \
|
|
||||||
" </div>\n" \
|
|
||||||
" <div id=\"blurpage\">\n" \
|
|
||||||
" </div>\n" \
|
|
||||||
"\n" \
|
"\n" \
|
||||||
" <script src=\"scripts/functions.js\" type=\"text/javascript\"></script>\n" \
|
" <script src=\"scripts/functions.js\" type=\"text/javascript\"></script>\n" \
|
||||||
" <script type=\"text/javascript\">\n" \
|
" <script type=\"text/javascript\">\n" \
|
||||||
|
|||||||
5
doc/templates/scripts/functions.js
vendored
5
doc/templates/scripts/functions.js
vendored
@@ -117,13 +117,8 @@ function processNokiaData(response){
|
|||||||
var blankRE=/^\s*$/;
|
var blankRE=/^\s*$/;
|
||||||
function CheckEmptyAndLoadList()
|
function CheckEmptyAndLoadList()
|
||||||
{
|
{
|
||||||
var pageUrl = window.location.href;
|
|
||||||
var pageVal = $('title').html();
|
|
||||||
$('#feedUrl').remove();
|
$('#feedUrl').remove();
|
||||||
$('#pageVal').remove();
|
|
||||||
$('.menuAlert').remove();
|
$('.menuAlert').remove();
|
||||||
$('#feedform').append('<input id="feedUrl" name="feedUrl" value="'+pageUrl+'" style="display:none;">');
|
|
||||||
$('#feedform').append('<input id="pageVal" name="pageVal" value="'+pageVal+'" style="display:none;">');
|
|
||||||
$('.liveResult').remove();
|
$('.liveResult').remove();
|
||||||
$('.defaultLink').css('display','block');
|
$('.defaultLink').css('display','block');
|
||||||
var value = document.getElementById('pageType').value;
|
var value = document.getElementById('pageType').value;
|
||||||
|
|||||||
Reference in New Issue
Block a user