original_string: protected function resolveDispositionHeaderFilename($filename)
      {
          $userAgent = $this->request->headers->get('User-Agent');
  
          if (preg_match('#MSIE|Safari|Konqueror#', $userAgent)) {
              return "filename=".rawurlencode($filename);
          }
  
          return "filename*=UTF-8''".rawurlencode($filename);
      }
code: protected function resolveDispositionHeaderFilename($filename)
      {
          $userAgent = $this->request->headers->get('User-Agent');
  
          if (preg_match('#MSIE|Safari|Konqueror#', $userAgent)) {
              return "filename=".rawurlencode($filename);
          }
  
          return "filename*=UTF-8''".rawurlencode($filename);
      }
code_tokens: protected function resolveDispositionHeaderFilename ( $ filename ) { $ userAgent = $ this -> request -> headers -> get ( 'User-Agent' ) ; if ( preg_match ( '#MSIE|Safari|Konqueror#' , $ userAgent ) ) { return "filename=" . rawurlencode ( $ filename ) ; } return "filename*=UTF-8''" . rawurlencode ( $ filename ) ; }
docstring: Algorithm inspired by phpBB3
docstring_tokens: Algorithm inspired by phpBB3