summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Palmer <nick@sluggardy.net>2007-06-07 10:49:24 +0000
committerNick Palmer <nick@sluggardy.net>2007-06-07 10:49:24 +0000
commit45462267d898bda752120a392535020fdd4e7d02 (patch)
treee4735db731bc6db4dd49948e049cfce54e8eaff5
parentc55a5d770df639a9a6c92a20f7642381c393c51d (diff)
downloadnexus-45462267d898bda752120a392535020fdd4e7d02.tar.gz
nexus-45462267d898bda752120a392535020fdd4e7d02.tar.bz2
nexus-45462267d898bda752120a392535020fdd4e7d02.zip
Allow more URI types than just http
-rw-r--r--Nexus.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Nexus.php b/Nexus.php
index 1c05868..1a1dc7b 100644
--- a/Nexus.php
+++ b/Nexus.php
@@ -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