diff --git a/includes/core/urls.inc.php b/includes/core/urls.inc.php index b5a04dd..479fc1f 100644 --- a/includes/core/urls.inc.php +++ b/includes/core/urls.inc.php @@ -42,7 +42,7 @@ final class URLMapper if ( ! preg_match( '/^(\/[a-z0-9]+)+$/' , $path ) ) { $this->showPageNotFound( ); return; - } + } if ( $this->prefix == null ) { $path = substr( $path , 1 ); @@ -66,7 +66,7 @@ final class URLMapper private function showPageFor( $path ) { - $split = split( '/' , $path ); + $split = explode( '/' , $path ); $extras = array( ); while ( !empty( $split ) ) { $name = join( '_' , $split ); @@ -148,7 +148,7 @@ class Page_Errors public function setExtraPath( $extraPath ) { - $extraPath = split( '/' , $extraPath ); + $extraPath = explode( '/' , $extraPath ); if ( (int)$extraPath[ 0 ] != 0 ) { $this->httpError = (int) $extraPath[ 0 ]; } diff --git a/includes/form/validators.inc.php b/includes/form/validators.inc.php index b1be026..eb3100e 100644 --- a/includes/form/validators.inc.php +++ b/includes/form/validators.inc.php @@ -114,7 +114,7 @@ class Validator_Email public function validate( $value ) { if ( preg_match( "/^[a-zA-Z0-9\._-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/" , $value ) ) { - list( $username , $domain ) = split( '@' , $value ); + list( $username , $domain ) = explode( '@' , $value ); if ( checkdnsrr( $domain , 'MX' ) ) { return null; }