public function isRequestedUrlClean(Request\Web $request)
    {
        $server = $request->getServer();
        if (!isset($server['REQUEST_URI'])) {
            throw new Exception('REQUEST_URI is not set');
        }

        return strpos($server['REQUEST_URI'], $this->entryPoint) !== 0;
    }
public function isRequestedUrlClean(Request\Web $request)
    {
        $server = $request->getServer();
        if (!isset($server['REQUEST_URI'])) {
            throw new Exception('REQUEST_URI is not set');
        }

        return strpos($server['REQUEST_URI'], $this->entryPoint) !== 0;
    }
public function isRequestedUrlClean ( Request \ Web $ request ) { $ server = $ request -> getServer ( ) ; if ( ! isset ( $ server [ 'REQUEST_URI' ] ) ) { throw new Exception ( 'REQUEST_URI is not set' ) ; } return strpos ( $ server [ 'REQUEST_URI' ] , $ this -> entryPoint ) !== 0 ; }
Check that requested URL is clean

@param \Shade\Request\Web $request Request

@throws \Shade\Exception

@return bool
Check that requested URL is clean