Ignore:
Timestamp:
01/11/13 08:48:41 (11 years ago)
Author:
marcieli
Message:

Ticket #3236 - Correcoes de seguranca com base no segundo relatorio emitido.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/calendar/inc/class.bocalendar.inc.php

    r7712 r7730  
    28712871                        //verifica se todos os participantes rejeitaram o evento 
    28722872                        for($i = 0; $i < count($sts); ++$i ){ 
    2873                                 if( $sts[i] === "R") 
    2874                                         unset( $sts[i] ); 
     2873                                if( $sts[$i] === "R") 
     2874                                        unset( $sts[$i] ); 
    28752875                        } 
    28762876                         
     
    36673667                                                                                                                $varbuttom3 = "<form action=".$GLOBALS['phpgw_info']['server']['webserver_url']."/index.php?menuaction=calendar.uialarm.manager method='POST'> 
    36683668                                                                                                                                                                  <input type='submit' value='$lang4'> 
    3669                                                                                                                                                                   <input type='hidden' name='cal_id' value=$event[id]> 
     3669                                                                                                                                                                  <input type='hidden' name='cal_id' value={$event['id']}> 
    36703670                                                                                                                                                                   </form>"; 
    36713671                                                                                                                                                                    
    36723672                                                                                                                $lang5 = lang("Suggest new hour");  
    3673                                                                                                                 $varbuttom4 = "<form action=".$GLOBALS['phpgw_info']['server']['webserver_url']."/index.php?menuaction=calendar.uicalendar.view&cal_id=$event[id]&date=$newall3&type=1' method='POST'> 
     3673                                                                                                                $varbuttom4 = "<form action=".$GLOBALS['phpgw_info']['server']['webserver_url']."/index.php?menuaction=calendar.uicalendar.view&cal_id={$event['id']}&date=$newall3&type=1' method='POST'> 
    36743674                                                                                                                                                                  <input type='submit' value='$lang5'> 
    36753675                                                                                                                                                                   </form>"; 
     
    40834083                                $to_notify = $event['participants']; 
    40844084                        } 
    4085                         elseif ($this->check_perms(PHPGW_ACL_READ,$event))      // checks agains $this->owner set to $alarm[owner] 
     4085                        elseif ($this->check_perms(PHPGW_ACL_READ,$event))      // checks agains $this->owner set to $alarm['owner'] 
    40864086                        { 
    40874087                                $to_notify[$alarm['owner']] = 'A'; 
     
    42714271                                $event['owner'] != $this->owner && 
    42724272                                $event['participants'][$this->owner] == 'R'; 
    4273                         //echo "<p>rejected_no_show($event[title])='$ret': user=$this->owner, event-owner=$event[owner], status='".$event['participants'][$this->owner]."', show_rejected='".$this->prefs['calendar']['show_rejected']."'</p>\n"; 
     4273                        //echo "<p>rejected_no_show($event['title'])='$ret': user=$this->owner, event-owner=$event['owner'], status='".$event['participants'][$this->owner]."', show_rejected='".$this->prefs['calendar']['show_rejected']."'</p>\n"; 
    42744274                        return $ret; 
    42754275                } 
Note: See TracChangeset for help on using the changeset viewer.