removed spectre
updated credits
This commit is contained in:
parent
e49fcd76e9
commit
f1de189938
6 changed files with 15 additions and 297 deletions
|
|
@ -784,7 +784,18 @@ Returns the not found object. The not found object is set in the settings.
|
|||
=cut
|
||||
|
||||
sub getNotFound {
|
||||
if ($session{wguri} eq "/abcdefghijklmnopqrstuvwxyz") {
|
||||
if ($session{wguri} eq "/*give-credit-where-credit-is-due*") {
|
||||
my $content = "";
|
||||
open(FILE,"<".$session{config}{webguiRoot}."/docs/credits.txt");
|
||||
while (<FILE>) {
|
||||
$content .= $_;
|
||||
}
|
||||
close(FILE);
|
||||
return WebGUI::Asset->newByPropertyHashRef({
|
||||
className=>"WebGUI::Asset::Snippet",
|
||||
snippet=> '<pre>'.$content.'</pre>'
|
||||
});
|
||||
} elsif ($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>|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue