Commit 1012a356 authored by Donal McMullan's avatar Donal McMullan
Browse files

Dropslash from incoming wwwroot (for auth_instance_config) table

parent 5b00c3a9
......@@ -682,6 +682,10 @@ class PluginAuthXmlrpc extends PluginAuth {
$record->field = $field;
$record->value = $value;
if ($field == 'wwwroot') {
$record->value = dropslash($value);
}
if (empty($value)) {
delete_records('auth_instance_config', 'field', $field, 'instance', $values['instance']);
} elseif ($values['create'] || !array_key_exists($field, $current)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment