Feature/ecasogp 12038 about us - #1115
Conversation
| // Inserting the attribute to open a link in a new tab on each link | ||
| let relevant_course = item.relevant_courses[i]; | ||
| if (typeof (relevant_course) === 'string' && relevant_course.indexOf('">') >= 0) { | ||
| relevant_course = relevant_course.replace('>', ' target="_blank" >'); |
Check failure
Code scanning / CodeQL
Incomplete string escaping or encoding
| // Inserting the attribute to open a link in a new tab on each link | ||
| let relevant_course = item.relevant_courses[i]; | ||
| if (typeof (relevant_course) === 'string' && relevant_course.indexOf('">') >= 0) { | ||
| relevant_course = relevant_course.replace('>', ' target="_blank" >'); |
Check failure
Code scanning / CodeQL
Incomplete string escaping or encoding
| image | ||
| .animate({ opacity: 0 }, 100, function () { | ||
| image | ||
| .attr('src', imageSource) |
Check warning
Code scanning / CodeQL
DOM text reinterpreted as HTML
|
|
||
| }; | ||
|
|
||
| imageToLoad.src = imageSource; |
Check warning
Code scanning / CodeQL
DOM text reinterpreted as HTML
| imageToLoad.onload = function () { | ||
|
|
||
| image | ||
| .attr('src', imageSource) |
Check warning
Code scanning / CodeQL
DOM text reinterpreted as HTML
| $('html').css(windowStyles); | ||
|
|
||
| // add everything to DOM | ||
| mfp.bgOverlay.add(mfp.wrap).prependTo( mfp.st.prependTo || $(document.body) ); |
Check warning
Code scanning / CodeQL
Unsafe jQuery plugin
| _mfpTrigger('FirstMarkupParse', markup); | ||
|
|
||
| if(markup) { | ||
| mfp.currTemplate[type] = $(markup); |
Check warning
Code scanning / CodeQL
Unsafe jQuery plugin
| .then(function (posts) { | ||
| totalResults = posts.web.total; | ||
| document.getElementById("search-params").innerHTML = | ||
| urlParams.get("query"); |
Check failure
Code scanning / CodeQL
Client-side cross-site scripting
| document.getElementById("search-params").innerHTML = | ||
| urlParams.get("query"); | ||
| document.getElementById("search-keyword").innerHTML = | ||
| urlParams.get("query"); |
Check failure
Code scanning / CodeQL
Client-side cross-site scripting
| if (totalResults > (page * resultsPerPage)) { | ||
| pagerLinks += '<a href="' + getLinkToPage(parseInt(page) + 1) + '" aria-label="Next page">Next >></a>'; | ||
| } | ||
| pager.innerHTML = pagerLinks; |
Check failure
Code scanning / CodeQL
Client-side cross-site scripting
No description provided.