fixing something
This commit is contained in:
parent
818ff2608c
commit
88e180b3b8
1 changed files with 8 additions and 1 deletions
|
|
@ -784,7 +784,14 @@ Returns the not found object. The not found object is set in the settings.
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
sub getNotFound {
|
sub getNotFound {
|
||||||
return WebGUI::Asset->newByDynamicClass($session{setting}{notFoundPage});
|
if ($session{wguri} eq "/abcdefghijklmnopqrstuvwxyz") {
|
||||||
|
return WebGUI::Asset->newByPropertyHashRef({
|
||||||
|
className=>"WebGUI::Asset::Snippet",
|
||||||
|
snippet=>q|<div style="width: 600px; padding: 200px;">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.</div>|
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
return WebGUI::Asset->newByDynamicClass($session{setting}{notFoundPage});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue