Skip to content

Commit

Permalink
added integrity verifications for all sources in JSPs
Browse files Browse the repository at this point in the history
  • Loading branch information
panuozzo77 committed Jan 19, 2024
1 parent b5082a7 commit 86be584
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/main/webapp/JSP/changePassw.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<link rel="icon" href="../images/siteIco.png" type="image/png">
<title>TalkAId - Cambio Password</title>
<link href="../CSS/Change_Password.css" type="text/css" rel = "stylesheet">
<script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.4.min.js" integrity="sha384-UG8ao2jwOWB7/oDdObZc6ItJmwUkR/PfMyt9Qs5AwX7PsnYn1CRKCTWyncPTWvaS" crossorigin="anonymous"></script>

<script>
$(document).ready(function() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/JSP/homePagePatient.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@



<script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.4.min.js" integrity="sha384-UG8ao2jwOWB7/oDdObZc6ItJmwUkR/PfMyt9Qs5AwX7PsnYn1CRKCTWyncPTWvaS" crossorigin="anonymous"></script>
<script>
function goReport() {
window.location.href = "patientReport.jsp";
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/JSP/legal.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
</div>
<button class="button" type="submit">Salva</button>
</form>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js" integrity="sha384-ZvpUoO/+PpLXR1lu4jmpXWu80pZlYUAfxl5NsBMWOEPSjUn/6Z/hRTt8+pR6L4N2" crossorigin="anonymous"></script>
<script src="../JS/legal.js"></script>
</body>
</html>
6 changes: 2 additions & 4 deletions src/main/webapp/JSP/messageCenter.jsp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<%@ page import="model.service.message.MessageManager" %>
<%@ page import="java.util.List" %>
<%@ page import="model.service.user.UserData" %>
<%@ page import="model.entity.User" %>
<%@ page import="model.service.user.UserRegistry" %>
<%@ page import="model.entity.PersonalInfo" %>
<%@ page import="model.service.message.MessageManager" %>
Expand All @@ -13,8 +11,8 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://kit.fontawesome.com/391827d54c.js" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://kit.fontawesome.com/391827d54c.js" integrity="sha384-5xvj0M3Gh9Pb/mS3SIFJbKoo1xTVykyLGBYlelYdprRFdK8AUUOJeH7RN3ZQHKkW" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js" integrity="sha384-ZvpUoO/+PpLXR1lu4jmpXWu80pZlYUAfxl5NsBMWOEPSjUn/6Z/hRTt8+pR6L4N2" crossorigin="anonymous"></script>
<script src="../JS/message.js"></script>
<link rel="stylesheet" href="../CSS/messageCenter.css">
<title>TalkAId - Centro Messaggi</title>
Expand Down
4 changes: 1 addition & 3 deletions src/main/webapp/JSP/patientReport.jsp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<%@ page import="model.service.exercise.ExerciseManager" %>
<%@ page import="model.entity.Exercise" %>
<%@ page import="java.util.List" %>
<%@ page import="model.entity.ExerciseGlossary" %>
<%@ page import="model.entity.SlimmerExercise" %>
<!DOCTYPE html>
<html lang="it" style="background-color: #f7fcff; ">
Expand All @@ -18,7 +16,7 @@
<%@page contentType="text/html;charset=UTF-8"%>
<meta charset="utf-8" />
<link rel="stylesheet" href="../CSS/homepagepatient.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js" integrity="sha384-ZvpUoO/+PpLXR1lu4jmpXWu80pZlYUAfxl5NsBMWOEPSjUn/6Z/hRTt8+pR6L4N2" crossorigin="anonymous"></script>
<title>TalkAId - I tuoi risultati</title>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/JSP/userArea.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<title>TalkAId - User Area</title>
<link rel="icon" href="../images/siteIco.png" type="image/png">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-r4NyP46KrjDleawBgD5tp8Y7UzmLA05oM1iAEQ17CSuDqnUK2+k9luXQOfXJCJ4I" crossorigin="anonymous">
<link href="../CSS/dettagliUser.css" rel="stylesheet">
<link href="#" rel="stylesheet">
</head>
Expand Down
5 changes: 1 addition & 4 deletions src/main/webapp/JSP/userReport.jsp
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<%@ page import="model.service.exercise.ExerciseManager" %>
<%@ page import="model.entity.Exercise" %>
<%@ page import="java.util.List" %>
<%@ page import="model.entity.ExerciseGlossary" %>
<%@ page import="java.util.Map" %>
<!DOCTYPE html>
<html lang="it" style="background-color: #f7fcff; ">
Expand All @@ -19,7 +16,7 @@
<%@page contentType="text/html;charset=UTF-8"%>
<meta charset="utf-8" />
<link href="../CSS/userReport.css" type="text/css" rel = "stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js" integrity="sha384-ZvpUoO/+PpLXR1lu4jmpXWu80pZlYUAfxl5NsBMWOEPSjUn/6Z/hRTt8+pR6L4N2" crossorigin="anonymous"></script>

</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/JSP/viewPatientInfo.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js" integrity="sha384-9nhczxUqK87bcKHh20fSQcTGD4qq5GhayNYSYWqwBkINBhOfQLg/P5HG5lF1urn4" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js" integrity="sha384-ZvpUoO/+PpLXR1lu4jmpXWu80pZlYUAfxl5NsBMWOEPSjUn/6Z/hRTt8+pR6L4N2" crossorigin="anonymous"></script>
<link rel="stylesheet" href="../CSS/homepageTherapist.css" />
<link rel="stylesheet" href="../CSS/viewPatientInfo.css" />
Expand Down

0 comments on commit 86be584

Please sign in to comment.