summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-11-15 22:32:07 +0100
committerGitHub <noreply@github.com>2023-11-15 22:32:07 +0100
commit1408509ee706a27bc5f9a04861c5e7f491444382 (patch)
tree5be76c69057ea06696c1faf0395bc483efbe80a3 /apps
parent11764ffec1113f14fe15a22e6db90ec633d1bb8e (diff)
parentc1283e134fc464c75f9f1717b3e3307d8e26e1ba (diff)
downloadnextcloud-server-1408509ee706a27bc5f9a04861c5e7f491444382.tar.gz
nextcloud-server-1408509ee706a27bc5f9a04861c5e7f491444382.zip
Merge pull request #40918 from nextcloud/backport/40709/stable27
[stable27] LDAP: Increase profile picture limit to 512
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/lib/User/User.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/User/User.php b/apps/user_ldap/lib/User/User.php
index da6cae39034..78a244dc0a6 100644
--- a/apps/user_ldap/lib/User/User.php
+++ b/apps/user_ldap/lib/User/User.php
@@ -748,8 +748,8 @@ class User {
}
- //make sure it is a square and not bigger than 128x128
- $size = min([$this->image->width(), $this->image->height(), 128]);
+ //make sure it is a square and not bigger than 512x512
+ $size = min([$this->image->width(), $this->image->height(), 512]);
if (!$this->image->centerCrop($size)) {
$this->logger->error('croping image for avatar failed for '.$this->dn, ['app' => 'user_ldap']);
return false;