~ubuntu-branches/ubuntu/trusty/moodle/trusty

« back to all changes in this revision

Viewing changes to mod/chat/chatd.php

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2014-01-21 13:40:52 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20140121134052-ym2qvsp2cd9vq0p6
Tags: 2.5.4-1
* New upstream release, fixing security issues:
  - MSA-14-0001 Config passwords visibility issue [CVE-2014-0008]
  - MSA-14-0002 Group constraints lacking in "login as" [CVE-2014-0009]
  - MSA-14-0003 CSRF vulnerability in profile fields [CVE-2014-0010]
* Move /var/lib/moodle directory into package.
* Revert back to bundled yui3. Unfortunately, version in Debian and
  of upstream are not compatible (closes: #735312).

Show diffs side-by-side

added added

removed removed

Lines of Context:
206
206
        // if this is needed, as we have a nonblocking socket anyway.
207
207
        // If trouble starts to creep up, we 'll restore this.
208
208
//        $check_socket = array($connection);
209
 
//        $socket_changed = socket_select($read = NULL, $check_socket, $except = NULL, 0, 0);
 
209
//        $read = null;
 
210
//        $except = null;
 
211
//        $socket_changed = socket_select($read, $check_socket, $except, 0, 0);
210
212
//        if($socket_changed > 0) {
211
213
//
212
214
//            // ABOVE CODE GOES HERE
691
693
 
692
694
    function conn_accept() {
693
695
        $read_socket = array($this->listen_socket);
694
 
        $changed = socket_select($read_socket, $write = NULL, $except = NULL, 0, 0);
 
696
        $write = null;
 
697
        $except = null;
 
698
        $changed = socket_select($read_socket, $write, $except, 0, 0);
695
699
 
696
700
        if(!$changed) {
697
701
            return false;
721
725
            return 0;
722
726
        }
723
727
 
724
 
        $retval = socket_select($monitor, $a = NULL, $b = NULL, NULL);
 
728
        $a = null;
 
729
        $b = null;
 
730
        $retval = socket_select($monitor, $a, $b, null);
725
731
        $handles = $monitor;
726
732
 
727
733
        return $retval;
1004
1010
    if($DAEMON->conn_activity_ufo($active)) {
1005
1011
        foreach($active as $handle) {
1006
1012
            $read_socket = array($handle);
1007
 
            $changed = socket_select($read_socket, $write = NULL, $except = NULL, 0, 0);
 
1013
            $write = null;
 
1014
            $except = null;
 
1015
            $changed = socket_select($read_socket, $write, $except, 0, 0);
1008
1016
 
1009
1017
            if($changed > 0) {
1010
1018
                // Let's see what it has to say