You are here

function question_url_check in Quiz 6.5

Same name and namespace in other branches
  1. 6.6 includes/moodle/lib/questionlib.php \question_url_check()
1 call to question_url_check()
question_find_file_links_from_html in includes/moodle/lib/questionlib.php

File

includes/moodle/lib/questionlib.php, line 2286

Code

function question_url_check($url) {
  global $CFG;
  if (substr(strtolower($url), 0, strlen($CFG->moddata)) == strtolower($CFG->moddata) || substr(strtolower($url), 0, 10) == 'backupdata') {
    return false;
  }
  else {
    return clean_param($url, PARAM_PATH);
  }
}