summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2006-08-11 18:47:19 +0000
committertailor <cygnus@janrain.com>2006-08-11 18:47:19 +0000
commit7989bbcc1a451ed3b0b4d4cbf61539c1a29a04fa (patch)
tree7652f8845218bd04f4704a18fdfba7e2199ce657
parentd40bf8c7bd8152f07c2768a2ef5cb59361d25208 (diff)
downloadphp-openid-7989bbcc1a451ed3b0b4d4cbf61539c1a29a04fa.zip
php-openid-7989bbcc1a451ed3b0b4d4cbf61539c1a29a04fa.tar.gz
php-openid-7989bbcc1a451ed3b0b4d4cbf61539c1a29a04fa.tar.bz2
[project @ Renamed startswith]
-rw-r--r--Auth/OpenID/URINorm.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/Auth/OpenID/URINorm.php b/Auth/OpenID/URINorm.php
index 9dad46d..5d3d91c 100644
--- a/Auth/OpenID/URINorm.php
+++ b/Auth/OpenID/URINorm.php
@@ -70,7 +70,7 @@ foreach (array_merge($__UCSCHAR, $__IPRIVATE) as $pair) {
$_escapeme_re = sprintf('[%s]', implode('', $parts));
-function startswith($s, $stuff)
+function _startswith($s, $stuff)
{
return strpos($s, $stuff) === 0;
}
@@ -109,15 +109,15 @@ function remove_dot_segments($path)
$result_segments = array();
while ($path) {
- if (startswith($path, '../')) {
+ if (_startswith($path, '../')) {
$path = substr($path, 3);
- } else if (startswith($path, './')) {
+ } else if (_startswith($path, './')) {
$path = substr($path, 2);
- } else if (startswith($path, '/./')) {
+ } else if (_startswith($path, '/./')) {
$path = substr($path, 2);
} else if ($path == '/.') {
$path = '/';
- } else if (startswith($path, '/../')) {
+ } else if (_startswith($path, '/../')) {
$path = substr($path, 3);
if ($result_segments) {
array_pop($result_segments);