Skip to content

Commit

Permalink
COCOON-1957: prevent stack overflow resulting from recursive call (th…
Browse files Browse the repository at this point in the history
…anks to Alexander Klimetschek)

git-svn-id: https://svn.apache.org/repos/asf/cocoon/trunk/core@479712 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Joerg Heinick committed Nov 27, 2006
1 parent 9112023 commit 13be278
Showing 1 changed file with 4 additions and 5 deletions.
Expand Up @@ -34,9 +34,6 @@
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionContext;

import org.apache.commons.collections.map.AbstractHashedMap;


/**
* Create a HttpServletRequest from an URL, that is used while calling e.g. a block.
*
Expand Down Expand Up @@ -314,14 +311,16 @@ public String getScheme() {
* @see javax.servlet.ServletRequest#getServerName()
*/
public String getServerName() {
return this.getServerName();
// TODO implement this
return "";
}

/* (non-Javadoc)
* @see javax.servlet.ServletRequest#getServerPort()
*/
public int getServerPort() {
return this.getServerPort();
// TODO implement this
return 80;
}

/* (non-Javadoc)
Expand Down

0 comments on commit 13be278

Please sign in to comment.