Issue Details (XML | Word | Printable)

Key: MDL-16603
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Nobody
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

Quote issue (help field) when updating mnet_rpc

Created: 22/Sep/08 04:25 PM   Updated: 22/Sep/08 04:25 PM
Return to search
Component/s: Networking
Affects Version/s: 1.9.1
Fix Version/s: None

Database: Any
Participants: Nobody and Valery Fremaux
Security Level: None
Affected Branches: MOODLE_19_STABLE


 Description  « Hide
Breaks update statement when a quote in help text.

How to fix :

in /admin/mnet/adminlib.php §67 :

        foreach($rpcrecords as $rpc) {
            if (!array_key_exists($rpc->function_name, $methodServiceArray)) {
                $rpc->enabled = 0;
                $rpc->help = addslashes($rpc->help); // ADD THIS TO PROTECT HELP BACK
                update_record('mnet_rpc', $rpc);
            }
        }
 

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.