Commit 1f6b6006 authored by Yuliya Bozhko's avatar Yuliya Bozhko Committed by Gerrit Code Review

Merge "Problem extracting leap2a zip file on import (Bug #1380434)"

parents 310a0dbe cf65df39
......@@ -223,7 +223,7 @@ function adduser_validate(Pieform $form, $values) {
$mimetype = file_mime_type($values['leap2afile']['tmp_name']);
}
else {
$mimetype = $values['leap2afile']['type'];
$mimetype = trim($values['leap2afile']['type'], '"');
}
$date = time();
$niceuser = preg_replace('/[^a-zA-Z0-9_-]/', '-', $values['username']);
......
......@@ -124,7 +124,7 @@ function import_validate(Pieform $form, $values) {
$mimetype = file_mime_type($values['leap2afile']['tmp_name']);
}
else {
$mimetype = $values['leap2afile']['type'];
$mimetype = trim($values['leap2afile']['type'], '"');
}
$date = time();
$niceuser = preg_replace('/[^a-zA-Z0-9_-]/', '-', $USER->get('username'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment