mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-58943 oauth2: use standard way of URL validation
This commit is contained in:
parent
3e3e120d3a
commit
daef88213b
@ -219,7 +219,9 @@ class issuer extends persistent {
|
||||
* @return lang_string|boolean
|
||||
*/
|
||||
protected function validate_baseurl($value) {
|
||||
if (!empty($value) && strpos($value, 'https://') !== 0) {
|
||||
global $CFG;
|
||||
include_once($CFG->dirroot . '/lib/validateurlsyntax.php');
|
||||
if (!empty($value) && !validateUrlSyntax($value, 'S+')) {
|
||||
return new lang_string('sslonlyaccess', 'error');
|
||||
}
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user