Sha256: 673e9d745ee9d24566a9e8265a3f5a5acd29f0280a46b3fdb94a95a56bb5fe2e

Contents?: true

Size: 1.02 KB

Versions: 22

Compression:

Stored size: 1.02 KB

Contents

#!/usr/bin/env ruby
# -*- coding: utf-8; -*-
#
# index.fcgi $Revision: 1.35 $
#
# Copyright (C) 2004, Akinori MUSHA
# Copyright (C) 2006, moriq
# Copyright (C) 2006-2009, Kazuhiko <kazuhiko@fdiary.net>
# You can redistribute it and/or modify it under GPL2.
#
require 'fcgi'
# workaround untaint LOAD_PATH for rubygems library path is always tainted.
$:.each{|path| path.untaint if path.include?('fcgi') && path.tainted? }

if FileTest::symlink?( __FILE__ ) then
	org_path = File::dirname( File::readlink( __FILE__ ) ).untaint
else
	org_path = File::dirname( __FILE__ ).untaint
end
load "#{org_path}/misc/lib/fcgi_patch.rb"

FCGI.each_cgi do |cgi|
	begin
		ENV.clear
		ENV.update(cgi.env_table)
		class << CGI; self; end.class_eval do
			define_method(:new) {|*args| cgi }
		end
		dir = File::dirname( cgi.env_table["SCRIPT_FILENAME"] )
		Dir.chdir(dir) do
			load 'index.rb'
		end
	ensure
		class << CGI
			remove_method :new
		end
	end
end

# Local Variables:
# mode: ruby
# indent-tabs-mode: t
# tab-width: 3
# ruby-indent-level: 3
# End:

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
tdiary-4.0.5.1 index.fcgi
tdiary-4.0.5 index.fcgi
tdiary-4.0.4 index.fcgi
tdiary-4.0.3 index.fcgi
tdiary-4.0.2.20140201 index.fcgi
tdiary-4.0.2 index.fcgi
tdiary-4.0.1.20131102 index.fcgi
tdiary-4.0.1.20130929 index.fcgi
tdiary-4.0.1.20130903 index.fcgi
tdiary-4.0.1 index.fcgi
tdiary-4.0.0.20130826 index.fcgi
tdiary-4.0.0 index.fcgi
tdiary-3.2.2.20130727 index.fcgi
tdiary-3.2.2.20130722 index.fcgi
tdiary-3.2.2.20130720 index.fcgi
tdiary-3.2.2.20130617 index.fcgi
tdiary-3.2.2.20130614 index.fcgi
tdiary-3.2.2.20130604 index.fcgi
tdiary-3.2.2.20130527 index.fcgi
tdiary-3.2.2.20130518 index.fcgi