original_string: protected function validateRedirectUserRole()
      {
          $value = $this->getSubmitted('redirect');
  
          if (isset($value) && mb_strlen($value) > 255) {
              $this->setErrorLengthRange('redirect', $this->translation->text('Redirect'), 0, 255);
              return false;
          }
  
          return true;
      }
code: protected function validateRedirectUserRole()
      {
          $value = $this->getSubmitted('redirect');
  
          if (isset($value) && mb_strlen($value) > 255) {
              $this->setErrorLengthRange('redirect', $this->translation->text('Redirect'), 0, 255);
              return false;
          }
  
          return true;
      }
code_tokens: protected function validateRedirectUserRole ( ) { $ value = $ this -> getSubmitted ( 'redirect' ) ; if ( isset ( $ value ) && mb_strlen ( $ value ) > 255 ) { $ this -> setErrorLengthRange ( 'redirect' , $ this -> translation -> text ( 'Redirect' ) , 0 , 255 ) ; return false ; } return true ; }
docstring: Validates a redirect path
  @return boolean
docstring_tokens: Validates a redirect path