mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 07:44:56 +01:00
Fix Javascript Injection bugs.
This commit is contained in:
parent
d54a689ace
commit
96de014d52
@ -1,22 +1,3 @@
|
|||||||
jQuery.fn.dataTableExt.oSort['es_date-asc'] = function (a, b) {
|
|
||||||
var esDatea = a.split('/');
|
|
||||||
var esDateb = b.split('/');
|
|
||||||
|
|
||||||
var x = (esDatea[2] + esDatea[1] + esDatea[0]) * 1;
|
|
||||||
var y = (esDateb[2] + esDateb[1] + esDateb[0]) * 1;
|
|
||||||
|
|
||||||
return ((x < y) ? -1 : ((x > y) ? 1 : 0));
|
|
||||||
};
|
|
||||||
|
|
||||||
jQuery.fn.dataTableExt.oSort['es_date-desc'] = function (a, b) {
|
|
||||||
var esDatea = a.split('/');
|
|
||||||
var esDateb = b.split('/');
|
|
||||||
|
|
||||||
var x = (esDatea[2] + esDatea[1] + esDatea[0]) * 1;
|
|
||||||
var y = (esDateb[2] + esDateb[1] + esDateb[0]) * 1;
|
|
||||||
|
|
||||||
return ((x < y) ? 1 : ((x > y) ? -1 : 0));
|
|
||||||
};
|
|
||||||
|
|
||||||
$.fn.dataTableExt.oApi.fnReloadAjax = function (oSettings, sNewSource, fnCallback, bStandingRedraw) {
|
$.fn.dataTableExt.oApi.fnReloadAjax = function (oSettings, sNewSource, fnCallback, bStandingRedraw) {
|
||||||
if (typeof sNewSource != 'undefined' && sNewSource != null) {
|
if (typeof sNewSource != 'undefined' && sNewSource != null) {
|
||||||
|
@ -12,12 +12,12 @@
|
|||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane fade active in" id="general">
|
<div class="tab-pane fade active in" id="general">
|
||||||
<ul class="unstyled">
|
<ul class="unstyled">
|
||||||
<li><strong><spring:message code="NAME"/>:</strong> ${mindmap.title}</li>
|
<li><strong><spring:message code="NAME"/>:</strong> <c:out value="${mindmap.title}"/></li>
|
||||||
<li><strong><spring:message code="DESCRIPTION"/>:</strong> ${mindmap.description}</li>
|
<li><strong><spring:message code="DESCRIPTION"/>:</strong> <c:out value="${mindmap.description}"/></li>
|
||||||
<li><strong><spring:message code="CREATOR"/>:</strong> ${mindmap.creator.fullName}</li>
|
<li><strong><spring:message code="CREATOR"/>:</strong> <c:out value="${mindmap.creator.fullName}"/></li>
|
||||||
<li><strong><spring:message code="CREATION_TIME"/>:</strong> ${mindmap.creationTime}</li>
|
<li><strong><spring:message code="CREATION_TIME"/>:</strong> ${mindmap.creationTime}</li>
|
||||||
<li><strong><spring:message code="LAST_UPDATE"/>:</strong> ${mindmap.lastEditTime}</li>
|
<li><strong><spring:message code="LAST_UPDATE"/>:</strong> ${mindmap.lastEditTime}</li>
|
||||||
<li><strong><spring:message code="LAST_UPDATE_BY"/>:</strong> ${mindmap.lastEditor}</li>
|
<li><strong><spring:message code="LAST_UPDATE_BY"/>:</strong> <c:out value="${mindmap.lastEditor}"/></li>
|
||||||
<li><strong> <spring:message code="STARRED"/>:</strong> ${mindmap.starred}</li>
|
<li><strong> <spring:message code="STARRED"/>:</strong> ${mindmap.starred}</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -78,8 +78,8 @@
|
|||||||
<div id="zoomOut" class="button"></div>
|
<div id="zoomOut" class="button"></div>
|
||||||
|
|
||||||
<div id="mapDetails">
|
<div id="mapDetails">
|
||||||
<span class="title"><spring:message code="CREATOR"/>:</span><span>${mindmap.creator.fullName}</span>
|
<span class="title"><spring:message code="CREATOR"/>:</span><span><c:out value="${mindmap.creator.fullName}"/></span>
|
||||||
<span class="title"><spring:message code="DESCRIPTION"/>:</span><span>${mindmap.title}</span>
|
<span class="title"><spring:message code="DESCRIPTION"/>:</span><span><c:out value="${mindmap.title}"/></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
bUseRendered:false,
|
bUseRendered:false,
|
||||||
mDataProp:"title",
|
mDataProp:"title",
|
||||||
fnRender:function (obj) {
|
fnRender:function (obj) {
|
||||||
return '<a href="c/maps/' + obj.aData.id + '/edit">' + obj.aData.title + '</a>';
|
return $('<a href="c/maps/' + obj.aData.id + '/edit"></a>').text(obj.aData.title).html();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -113,8 +113,8 @@
|
|||||||
<div id="zoomIn" class="button"></div>
|
<div id="zoomIn" class="button"></div>
|
||||||
|
|
||||||
<div id="mapDetails">
|
<div id="mapDetails">
|
||||||
<span class="title"><spring:message code="CREATOR"/>:</span><span>${mindmap.creator.fullName}</span>
|
<span class="title"><spring:message code="CREATOR"/>:</span><span><c:out value="${mindmap.creator.fullName}"/></span>
|
||||||
<span class="title"><spring:message code="DESCRIPTION"/>:</span><span>${mindmap.title}</span>
|
<span class="title"><spring:message code="DESCRIPTION"/>:</span><span><c:out value="${mindmap.title}"/></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user