Commit 5405477b authored by Nigel McNie's avatar Nigel McNie
Browse files

Allow people to put in a wwwroot without the http:// prefix if they want.

Just a convenience thing, as most people will copy from the URL bar in their browsers most likely.
parent dacb386c
......@@ -698,6 +698,9 @@ class PluginAuthXmlrpc extends PluginAuth {
}
public static function validate_config_options($values, $form) {
if (false === strpos($values['wwwroot'], '://')) {
$values['wwwroot'] = 'http://' . $values['wwwroot'];
}
$authinstance = new stdClass();
$peer = new Peer();
......@@ -723,6 +726,9 @@ class PluginAuthXmlrpc extends PluginAuth {
}
public static function save_config_options($values, $form) {
if (false === strpos($values['wwwroot'], '://')) {
$values['wwwroot'] = 'http://' . $values['wwwroot'];
}
db_begin();
$authinstance = new stdClass();
......
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