Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-19260

Ment renewed keys fail to record in mnet_host when site name has a quote

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.9.8
    • 1.9.5
    • MNet
    • None
    • Any
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE

      Needs adding

      needs adding addslashes call in replace_keys() as proposed here :

      ....
      set_config('openssl', implode('@@@@@@@@', $this->keypair), 'mnet');

      $this->name = addslashes($this->name); // <<< ALL SITE NAMES WITH QUOTES ARE PROTECTED.
      update_record('mnet_host', $this);
      error_log('New public key has been generated. It expires ' . date('Y/m/d h:i:s', $this->public_key_expires));
      }

            mjollnir Penny Leach (Inactive)
            vf Valery Fremaux
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.