You are here

function cleardoubleslashes in Quiz 6.5

Same name and namespace in other branches
  1. 6.6 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


includes/moodle_support.php, line 506


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