You are here

function cleardoubleslashes in Quiz 6.6

Same name and namespace in other branches
  1. 6.5 includes/moodle_support.php \cleardoubleslashes()

Replace 1 or more slashes or backslashes to 1 slash

1 call to cleardoubleslashes()
zip_files in includes/moodle_support.php
Zip an array of files/dirs to a destination zip file Both parameters must be FULL paths to the files/dirs

File

includes/moodle_support.php, line 530

Code

function cleardoubleslashes($path) {
  return preg_replace('/(\\/|\\\\){1,}/', '/', $path);
}