diff options
| author | Nick Palmer <nick@sluggardy.net> | 2007-06-07 10:49:24 +0000 |
|---|---|---|
| committer | Nick Palmer <nick@sluggardy.net> | 2007-06-07 10:49:24 +0000 |
| commit | 45462267d898bda752120a392535020fdd4e7d02 (patch) | |
| tree | e4735db731bc6db4dd49948e049cfce54e8eaff5 | |
| parent | c55a5d770df639a9a6c92a20f7642381c393c51d (diff) | |
| download | nexus-45462267d898bda752120a392535020fdd4e7d02.tar.gz nexus-45462267d898bda752120a392535020fdd4e7d02.tar.bz2 nexus-45462267d898bda752120a392535020fdd4e7d02.zip | |
Allow more URI types than just http
| -rw-r--r-- | Nexus.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ * * @abstract * @author xing <xing@synapse.plus.com> -* @version $Revision: 1.21 $ +* @version $Revision: 1.22 $ * @package nexus */ @@ -361,7 +361,7 @@ class Nexus extends NexusSystem { */ function verifyRsrc( &$pParamHash ) { $bit_root_pattern = "/^".preg_replace( "/\//", "\/", BIT_ROOT_URL )."/i"; - if( preg_match( "/^(http:\/\/)/i", $pParamHash['rsrc'] ) ) { + if( preg_match( "/^([a-zA-Z]{2,8}:\/\/)/i", $pParamHash['rsrc'] ) ) { $pParamHash['rsrc_type'] = 'external'; } elseif( is_numeric( $pParamHash['rsrc'] ) ) { // if the resource type is numeric but we don't know what type it is, assume that it's a content_id |
