Merge branch 'release-1.1' of github.com:roundcube/roundcubemail into release-1.1

Conflicts:
	CHANGELOG
pull/280/head
Aleksander Machniak 9 years ago
commit 334eb48cfe

@ -123,7 +123,7 @@ class acl extends rcube_plugin
$group_id = is_array($record[$group_field]) ? $record[$group_field][0] : $record[$group_field];
if ($group) {
$users[] = array('name' => ($prefix ? $prefix : '') . $group_id, 'display' => $group);
$users[] = array('name' => ($prefix ? $prefix : '') . $group_id, 'display' => $group, 'type' => 'group');
$keys[] = $group;
}
}

@ -161,15 +161,24 @@ class rcube_db_mysql extends rcube_db
{
if (!isset($this->variables)) {
$this->variables = array();
}
$result = $this->query('SHOW VARIABLES');
if (array_key_exists($varname, $this->variables)) {
return $this->variables[$varname];
}
while ($row = $this->fetch_array($result)) {
$this->variables[$row[0]] = $row[1];
}
$result = $this->query('SHOW VARIABLES LIKE ?', $varname);
while ($row = $this->fetch_array($result)) {
$this->variables[$row[0]] = $row[1];
}
// not found, use default
if (!isset($this->variables[$varname])) {
$this->variables[$varname] = $default;
}
return isset($this->variables[$varname]) ? $this->variables[$varname] : $default;
return $this->variables[$varname];
}
/**

@ -164,7 +164,7 @@ else if (strlen($part_id)) {
else {
// get valid file extensions
$extensions = rcube_mime::get_mime_extensions($real_mimetype);
$valid_extension = !$file_extension || in_array($file_extension, (array)$extensions);
$valid_extension = !$file_extension || empty($extensions) || in_array($file_extension, (array)$extensions);
}
// fix mimetype for images wrongly declared as octet-stream

Loading…
Cancel
Save