Skip to content
Snippets Groups Projects
Commit 858b1e8a authored by jlowe64's avatar jlowe64
Browse files

Added URL validation to settings page

parent 5bf7bf07
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ if ($hassiteconfig) {
// Endpoint.
$settings->add(new admin_setting_configtext('logstore_xapi/endpoint',
get_string('endpoint', 'logstore_xapi'), '',
'http://your.domain.com/endpoint/location/', PARAM_TEXT));
'http://your.domain.com/endpoint/location/', PARAM_URL));
// Username.
$settings->add(new admin_setting_configtext('logstore_xapi/username',
get_string('username', 'logstore_xapi'), '', 'username', PARAM_TEXT));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment