From a764062c62b9ea1a88ec1c8be07d7a768d222249 Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Sun, 22 Oct 2017 21:53:11 +0200 Subject: bugfix: not found caused exception --- not_found.cgi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/not_found.cgi b/not_found.cgi index 0648275..dc0b500 100755 --- a/not_found.cgi +++ b/not_found.cgi @@ -19,6 +19,7 @@ # along with dudle. If not, see . # ############################################################################ +if(ENV["REDIRECT_URL"]) require_relative "dudle" if File.exists?(Dir.pwd + File.dirname(ENV["REDIRECT_URL"])) $d = Dudle.new(:hide_lang_chooser => true, :load_extensions => false) @@ -54,3 +55,7 @@ END $d.out#($cgi) +else + puts + puts "Not Found" +end -- cgit v1.2.3