cvs: pearweb /include/Damblan URL.php

From: Date: Thu, 04 Dec 2003 21:07:43 +0000
Subject: cvs: pearweb /include/Damblan URL.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-14622@lists.php.net to get a copy of this message
mj Thu Dec 4 16:07:43 2003 EDT Modified files: /pearweb/include/Damblan URL.php Log: * Fix for #347 Index: pearweb/include/Damblan/URL.php diff -u pearweb/include/Damblan/URL.php:1.2 pearweb/include/Damblan/URL.php:1.3 --- pearweb/include/Damblan/URL.php:1.2 Wed Aug 20 05:22:02 2003 +++ pearweb/include/Damblan/URL.php Thu Dec 4 16:07:43 2003 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Author: Martin Jansen <mj@php.net> | +----------------------------------------------------------------------+ - $Id: URL.php,v 1.2 2003/08/20 09:22:02 mj Exp $ + $Id: URL.php,v 1.3 2003/12/04 21:07:43 mj Exp $ */ /** @@ -38,7 +38,7 @@ } $path = preg_replace("=^" . preg_quote($_SERVER['SCRIPT_NAME']) . "=", "", $_SERVER['REQUEST_URI']); - if ($path{0} == "/") { + if (isset($path{0}) && $path{0} == "/") { $path = substr($path, 1); $elements = explode("/", $path);

« previous php.pear.cvs (#14622) next »