From 88e180b3b85ca1600a5f093ea766603f4492cdef Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sun, 20 Nov 2005 17:03:09 +0000 Subject: [PATCH] fixing something --- lib/WebGUI/Asset.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/WebGUI/Asset.pm b/lib/WebGUI/Asset.pm index 71b46ee48..a086ce9c6 100644 --- a/lib/WebGUI/Asset.pm +++ b/lib/WebGUI/Asset.pm @@ -784,7 +784,14 @@ Returns the not found object. The not found object is set in the settings. =cut sub getNotFound { - return WebGUI::Asset->newByDynamicClass($session{setting}{notFoundPage}); + if ($session{wguri} eq "/abcdefghijklmnopqrstuvwxyz") { + return WebGUI::Asset->newByPropertyHashRef({ + className=>"WebGUI::Asset::Snippet", + snippet=>q|
Why would you type in this URL? Really. What were you expecting to see here? You really need to get a life. Are you still here? Seriously, you need to go do something else. I think your boss is calling.
| + }); + } else { + return WebGUI::Asset->newByDynamicClass($session{setting}{notFoundPage}); + } }