Hi, Here's a patch for AgaviWebRouting in case someone needs this:
https://gist.github.com/927088 [ simon.cpu ] On Tue, Apr 19, 2011 at 5:50 PM, Simon Cornelius P Umacob <[email protected]> wrote: > Huomenta, > > I've browsed the source code, and found out that > AgaviWebRouting::getBaseHref() was designed to include the port > number. My problem was that my web server was sitting inside an > experimental network, which I was accessing via a tunnel at port 8080. > > _SERVER["SERVER_PORT"] 80 > _SERVER["SERVER_ADDR"] 172.17.11.43 > _SERVER["REMOTE_PORT"] 13536 > _SERVER["REMOTE_ADDR"] 172.17.11.43 > _SERVER["SCRIPT_NAME"] /info.php > _SERVER["HTTP_HOST"] 172.17.80.80:8080 > > The problem is that AgaviWebRequest::getUrlPort() is using > _SERVER["SERVER_PORT"] instead of _SERVER["HTTP_HOST"]. > > Are patches welcome for this problem? > > Thanks, > > [ simon.cpu ] > > On Tue, Apr 19, 2011 at 5:00 PM, Simon Cornelius P Umacob > <[email protected]> wrote: >> Hi, >> >> Does it make sense for AgaviWebRouting::getBaseHref() to support the >> server's port number? You see, i have this problem where getBaseHref() >> doesn't include the server's port number if I use a port other than >> 80. I'm wondering if it makes sense to modify Agavi or just fix my >> app. =) >> >> Thanks, >> >> [ simon.cpu ] >> > _______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
