aboutsummaryrefslogtreecommitdiff
path: root/not_found.cgi
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2017-10-22 21:53:11 +0200
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2017-10-22 21:53:11 +0200
commita764062c62b9ea1a88ec1c8be07d7a768d222249 (patch)
tree01657004beb8352c6bc026ef0a45471824dbed90 /not_found.cgi
parentf06dffa03595afdaf4a6e5eb4efa6d538c28a903 (diff)
bugfix: not found caused exception
Diffstat (limited to 'not_found.cgi')
-rwxr-xr-xnot_found.cgi5
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