Problem with HTTP_Request / Net_URL

From: Date: Thu, 16 May 2002 08:49:32 +0000
Subject: Problem with HTTP_Request / Net_URL
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-6124@lists.php.net to get a copy of this message
In the class Net_URL which is used by HTTP_Request property $this->path defaults: $this->path = $HTTP_SERVER_VARS['PHP_SELF']; This causes problems if the url you pass to to Net_URL misses the trailing slash ( http://www.example.com ) because $PHP_SELF will be added to the request. IMO the correct default should be '/'. Yes, you can allways say the trailing slash should be there. However is the url is given as user input it usually is forgotten. -- Mika Tuupola http://www.appelsiini.net/~tuupola/

« previous php.pear.dev (#6124) next »