GRAYBYTE WORDPRESS FILE MANAGER9552

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/ruby32/share/gems/gems/psych-5.0.1/lib/psych/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/ruby32/share/gems/gems/psych-5.0.1/lib/psych//class_loader.rb
# frozen_string_literal: true
require_relative 'omap'
require_relative 'set'

module Psych
  class ClassLoader # :nodoc:
    BIG_DECIMAL = 'BigDecimal'
    COMPLEX     = 'Complex'
    DATE        = 'Date'
    DATE_TIME   = 'DateTime'
    EXCEPTION   = 'Exception'
    OBJECT      = 'Object'
    PSYCH_OMAP  = 'Psych::Omap'
    PSYCH_SET   = 'Psych::Set'
    RANGE       = 'Range'
    RATIONAL    = 'Rational'
    REGEXP      = 'Regexp'
    STRUCT      = 'Struct'
    SYMBOL      = 'Symbol'

    def initialize
      @cache = CACHE.dup
    end

    def load klassname
      return nil if !klassname || klassname.empty?

      find klassname
    end

    def symbolize sym
      symbol
      sym.to_sym
    end

    constants.each do |const|
      konst = const_get const
      class_eval <<~RUBY
        def #{const.to_s.downcase}
          load #{konst.inspect}
        end
      RUBY
    end

    private

    def find klassname
      @cache[klassname] ||= resolve(klassname)
    end

    def resolve klassname
      name    = klassname
      retried = false

      begin
        path2class(name)
      rescue ArgumentError, NameError => ex
        unless retried
          name    = "Struct::#{name}"
          retried = ex
          retry
        end
        raise retried
      end
    end

    CACHE = Hash[constants.map { |const|
      val = const_get const
      begin
        [val, ::Object.const_get(val)]
      rescue
        nil
      end
    }.compact].freeze

    class Restricted < ClassLoader
      def initialize classes, symbols
        @classes = classes
        @symbols = symbols
        super()
      end

      def symbolize sym
        return super if @symbols.empty?

        if @symbols.include? sym
          super
        else
          raise DisallowedClass.new('load', 'Symbol')
        end
      end

      private

      def find klassname
        if @classes.include? klassname
          super
        else
          raise DisallowedClass.new('load', klassname)
        end
      end
    end
  end
end

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
January 01 1970 00:00:00
root / root
0
handlers
--
May 13 2025 08:35:40
root / linksafe
0755
json
--
May 13 2025 08:35:40
root / linksafe
0755
nodes
--
May 13 2025 08:35:40
root / linksafe
0755
visitors
--
May 13 2025 08:35:40
root / linksafe
0755
class_loader.rb
1.986 KB
April 24 2025 07:53:46
root / linksafe
0644
coder.rb
2.049 KB
April 24 2025 07:53:46
root / linksafe
0644
core_ext.rb
0.354 KB
April 24 2025 07:53:46
root / linksafe
0644
exception.rb
0.709 KB
April 24 2025 07:53:46
root / linksafe
0644
handler.rb
7.196 KB
April 24 2025 07:53:46
root / linksafe
0644
nodes.rb
2.375 KB
April 24 2025 07:53:46
root / linksafe
0644
omap.rb
0.073 KB
April 24 2025 07:53:46
root / linksafe
0644
parser.rb
2.027 KB
April 24 2025 07:53:46
root / linksafe
0644
scalar_scanner.rb
4.687 KB
April 24 2025 07:53:46
root / linksafe
0644
set.rb
0.072 KB
April 24 2025 07:53:46
root / linksafe
0644
stream.rb
0.901 KB
April 24 2025 07:53:46
root / linksafe
0644
streaming.rb
0.651 KB
April 24 2025 07:53:46
root / linksafe
0644
syntax_error.rb
0.574 KB
April 24 2025 07:53:46
root / linksafe
0644
tree_builder.rb
2.986 KB
April 24 2025 07:53:46
root / linksafe
0644
versions.rb
0.184 KB
April 24 2025 07:53:46
root / linksafe
0644
visitors.rb
0.248 KB
April 24 2025 07:53:46
root / linksafe
0644
y.rb
0.186 KB
April 24 2025 07:53:46
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF