diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2017-10-22 21:53:11 +0200 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2017-10-22 21:53:11 +0200 |
commit | a764062c62b9ea1a88ec1c8be07d7a768d222249 (patch) | |
tree | 01657004beb8352c6bc026ef0a45471824dbed90 | |
parent | f06dffa03595afdaf4a6e5eb4efa6d538c28a903 (diff) |
bugfix: not found caused exception
-rwxr-xr-x | not_found.cgi | 5 |
1 files changed, 5 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. # ############################################################################ +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 |