Issue Details (XML | Word | Printable)

Key: MDL-19260
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: moodle.com
Reporter: Valery Fremaux
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

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

Created: 20/May/09 06:42 PM   Updated: 20/May/09 06:42 PM
Return to search
Component/s: Networking
Affects Version/s: 1.9.5
Fix Version/s: None

Database: Any
Participants: moodle.com and Valery Fremaux
Security Level: None
Affected Branches: MOODLE_19_STABLE


 Description  « Hide
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));
}



 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
No changes have yet been made on this issue.