Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

WebVpn with VPNConcentrator 3005

Hi all,

i've a problem with VPN Concentrator3005 and the WebVpn feature.

I try to explain it:

Using WebVpn I get a problem connected with JS code transformation. Opening a webpage from WebWpn I get a JS syntax error saying there is a missing ')' at line xxxx, the same page without WebVpn works well.

Looking at the HTML source code I noticed WebVpn translate my page adding a JS library and redirect most of JS calls with other library functions.

For instance line code like: Location.Href become +webvpn_unmangle_location(location,WEBVPN_LOC_HREF).

That is true and works but it seems WebVpn has a wrong behaviour with complex JS code and put in place a wrong code transformation.

The following code:

document.images['img'+k].src=(k==i) ? 'icona_nav_alto_on.gif':'icona_nav_alto_off.gif';

becomes

document.images['img'+k].src=webvpn_mangle_url((k==i))?'icona_nav_alto_on.gif':'icona_nav_alto_off.gif';

as you can see the second ')' is in a wrong position it must be at the end of the string, the right code must be:

document.images['img'+k].src=webvpn_mangle_url((k==i)?'icona_nav_alto_on.gif':'icona_nav_alto_off.gif");

The same error occurs with other JS code, it seems WebVpn is not able to manage all JS syntax and it makes mistakes while it changes the page code.

The software version is 4.7.2A

Somebody knows if there are restrictions on using JS code?

Thanks'

Diego

159
Views
0
Helpful
0
Replies
CreatePlease to create content