Skip to content

Commit b2d6f44

Browse files
hansonrhansonr
authored andcommitted
j2sApplet ensures that localhost is never indirectly called
1 parent f83ab18 commit b2d6f44

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sources/net.sf.j2s.java.core/srcjs/js/j2sApplet.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,8 @@ if (database == "_" && J2S._serverUrl.indexOf("//your.server.here/") >= 0) {
10021002
}
10031003

10041004
J2S._isDirectCall = function(url) {
1005+
if (url.indexOf("://localhost") >= 0)
1006+
return true;
10051007
for ( var key in J2S.db._DirectDatabaseCalls) {
10061008
if (key.indexOf(".") >= 0 && url.indexOf(key) >= 0) {
10071009
// hack because ebi is not returning ajax calls

0 commit comments

Comments
 (0)