protected function validateDestinationNameCopy()
    {
        $destination = $this->getSubmitted('destination');

        if ($destination !== '' && preg_match('/^[\w-]+[\w-\/]*[\w-]+$|^[\w-]$/', $destination) !== 1) {
            $this->setErrorInvalid('destination', $this->translation->text('Destination'));
        }
    }
protected function validateDestinationNameCopy()
    {
        $destination = $this->getSubmitted('destination');

        if ($destination !== '' && preg_match('/^[\w-]+[\w-\/]*[\w-]+$|^[\w-]$/', $destination) !== 1) {
            $this->setErrorInvalid('destination', $this->translation->text('Destination'));
        }
    }
protected function validateDestinationNameCopy ( ) { $ destination = $ this -> getSubmitted ( 'destination' ) ; if ( $ destination !== '' && preg_match ( '/^[\w-]+[\w-\/]*[\w-]+$|^[\w-]$/' , $ destination ) !== 1 ) { $ this -> setErrorInvalid ( 'destination' , $ this -> translation -> text ( 'Destination' ) ) ; } }
Validates a directory name
Validates a directory name