From 18dcbec3a5a99a57d0ef43a06a99c2ab17c2eed6 Mon Sep 17 00:00:00 2001 From: "Rotundo, Al (ar3165)" Date: Wed, 31 Jul 2019 14:46:56 +0000 Subject: Added new modules to help prevent Cross Site Request Forgery Made changes to prevent arbitrary code exection on AdmPortal. Issue-ID: OJSI-40 Change-Id: I5ec60e2585413f3948c2540bd502dd1393794267 Signed-off-by: Rotundo, Al (ar3165) Former-commit-id: 3d54c9ad35ef5e7a4b13948e718a4ad2830cbb04 --- admportal/views/sla/list.ejs | 122 ++++++++++++++++++++----------------------- 1 file changed, 58 insertions(+), 64 deletions(-) (limited to 'admportal/views/sla/list.ejs') diff --git a/admportal/views/sla/list.ejs b/admportal/views/sla/list.ejs index 10bd4f4c..575e2066 100644 --- a/admportal/views/sla/list.ejs +++ b/admportal/views/sla/list.ejs @@ -40,79 +40,73 @@
- - - - - - - - <% if(priv == 'A') { %> - - <% } %> - - - <% if(priv=='A') { %> - - <% } %> - - - - <% var i=0; rows.forEach( function(row) { %> - - - - - - - <% if ( priv == 'A' ) { - if (row.active == "Y") { %> - - <% } else { %> - - <% } %> - <% } %> - - - <% if ( priv == 'A' ) { %> - + + + + + + <% if(priv == 'A') { %> + + <% } %> + + <% if(priv=='A') { %> + + <% } %> + + + + <% var i=0; rows.forEach( function(row) { %> + + + + + + + <% if ( priv == 'A' ) { + if (row.active == "Y") { %> + + <% } else { %> + + <% } %> + <% } %> + + <% if ( priv == 'A' ) { %> + - <% } %> - - <% i++; }); %> - -
ModuleRPCVersionModeActiveActivate/DeactiveDisplayXML codeDelete
<%= row.module %><%= row.rpc %><%= row.version %><%= row.mode %><%= row.active %> - - - - -
ModuleRPCVersionModeActiveActivate/DeactiveXML codeDelete
<%= row.module %><%= row.rpc %><%= row.version %><%= row.mode %><%= row.active %> + + + -
+ '<%=row.rpc %>', '<%=row.version %>','<%=row.mode %>');">Delete + + <% } %> + + <% i++; }); %> + + <% if(priv == 'A') { %>
- - -

Choose a file to upload.

-
- <% - if ( priv == 'A' ) - { - %> - - <% } else { %> - - <% } %> + + + +

Choose a file to upload.

+
+ <% if ( priv == 'A' ) { %> + + <% } else { %> + + <% } %>
<% } %> + -- cgit 1.2.3-korg