Skip to content

Commit

Permalink
Enable windows WOAdaptor URLs, containing ".dll" or ".exe."
Browse files Browse the repository at this point in the history
  • Loading branch information
markusstoll authored and darkv committed Nov 26, 2015
1 parent ae25147 commit db18363
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ public abstract class ERXApplication extends ERXAjaxApplication implements ERXGr

private static boolean wasERXApplicationMainInvoked = false;

/** empty array for adaptorExtensions */
private static String[] myAppExtensions = {};

/**
* Notification to get posted when we get an OutOfMemoryError or when memory passes
* the low memory threshold set in er.extensions.ERXApplication.memoryLowThreshold.
Expand Down Expand Up @@ -2895,4 +2898,13 @@ public void terminate() {
NSNotificationCenter.defaultCenter().postNotification(ApplicationWillTerminateNotification, this);
super.terminate();
}

/**
* Override default implementation that returns {".dll", ".exe"} and therefor prohibits IIS
* as WebServer.
*/
@Override
public String[] adaptorExtensions() {
return myAppExtensions;
}
}

0 comments on commit db18363

Please sign in to comment.