Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 766 → Rev 767

/trunk/api/pear/Net/URL.php
32,7 → 32,7
// | Author: Richard Heyes <richard at php net> |
// +-----------------------------------------------------------------------+
//
// $Id: URL.php,v 1.1 2005-03-30 08:50:33 jpm Exp $
// $Id: URL.php,v 1.2 2006-03-13 21:00:48 ddelon Exp $
//
// Net_URL Class
 
136,7 → 136,8
// Only use defaults if not an absolute URL given
if (!preg_match('/^[a-z0-9]+:\/\//i', $url)) {
 
$this->protocol = (@$HTTP_SERVER_VARS['HTTPS'] == 'on' ? 'https' : 'http');
$this->protocol = 'http';
 
/**
* Figure out host/port