Skip to content

Commit

Permalink
Item12180: Correct args for not authorized case
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@16265 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
TimotheLitt authored and TimotheLitt committed Dec 24, 2012
1 parent f1d18a2 commit f262f84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/lib/Foswiki/Configure/ImageTest.pm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use Foswiki::Configure qw/:session/;

#<<<

# This module was machine-generated by resources/img2perl from resources/icon_ok.png Wed Dec 12 09:11:53 2012
# This module was machine-generated by ./resources/img2perl from resources/icon_ok.png Sun Dec 23 19:17:57 2012
# The base64 content is binary data.
#
# Do not edit this file; edit the generator program instead.
Expand Down Expand Up @@ -62,7 +62,7 @@ sub respond {
$sid = $1;
}
else {
return text($req, $res, "Not authorized by configure");
return text($req, $res, 403, "Forbidden", "Not authorized by configure");
}
my $session =
CGI::Session->load( SESSION_DSN, $sid,
Expand Down
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Configure/resources/img2perl
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ sub respond {
$sid = $1;
}
else {
return text($req, $res, "Not authorized by configure");
return text($req, $res, 403, "Forbidden", "Not authorized by configure");
}
my $session =
CGI::Session->load( SESSION_DSN, $sid,
Expand Down

0 comments on commit f262f84

Please sign in to comment.