Skip to content

Commit

Permalink
Item9167: lc(undef) and uc(undef) crash on perl 5.12
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@7823 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
SvenDowideit authored and SvenDowideit committed Jun 16, 2010
1 parent 659928b commit dfcf9cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/lib/Foswiki/Meta.pm
Expand Up @@ -1501,7 +1501,7 @@ sub MONITOR_ACLS { 0 }
---++ ObjectMethod haveAccess($mode, $cUID) -> $boolean
* =$mode= - 'VIEW', 'CHANGE', 'CREATE', etc.
* =$mode= - 'VIEW', 'CHANGE', 'CREATE', etc. (defaults to VIEW)
* =$cUID= - Canonical user id (defaults to current user)
Check if the user has the given mode of access to the topic. This call
may result in the topic being read.
Expand All @@ -1510,6 +1510,7 @@ may result in the topic being read.

sub haveAccess {
my ( $this, $mode, $cUID ) = @_;
$mode ||= 'VIEW';
$cUID ||= $this->{_session}->{user};
if ( defined $this->{_topic} && !defined $this->{_text} ) {

Expand Down

0 comments on commit dfcf9cb

Please sign in to comment.