Thomas Müller
682821c71e
Happy new year!
8 years ago
Roeland Jago Douma
186e35d954
Verify the path is a file on avatar update
Fixes #21533
Before we just assumed that the passed path was a file. This does not
have to be the case. Thus check if it actually is a file before doing
any more tests.
8 years ago
Roeland Jago Douma
3e80f14269
[Avatar] Make the avatar controller use the avatar node
8 years ago
Lukas Reschke
8f09d5b67c
Update license headers
8 years ago
Lukas Reschke
abdbf10ebc
Do not print exception message
In case of an error the error message often contains sensitive data such as the full path which potentially leads to a full path disclosure.
Thus the error message should not directly get displayed to the user and instead be logged.
8 years ago
Vincent Petry
14591d9df7
Use injected request
8 years ago
Morris Jobke
bf579a153f
fix IE8 user agent detection
8 years ago
Vincent Petry
c7aef6c368
Fix uploading avatar and root certs in IE8
9 years ago
Morris Jobke
b945d71384
update licence headers via script
8 years ago
Thomas Müller
a446b43bcc
Revert "Allow Remote avatars"
8 years ago
Roeland Jago Douma
ae62537adf
Allow remote avatars
9 years ago
Lukas Reschke
84d1e36ff9
Remove requesttoken for avatars
First step for https://github.com/owncloud/core/issues/11915
9 years ago
Roeland Jago Douma
65cf4028cc
Move avatarcontroller towards Node Api
9 years ago
Morris Jobke
e184157684
[avatar] add error handlers for avatar setup
add colon to translated string
use placeholder in t()
Adding a size limitation for avatar upload
Unit test for file size
Fix typo & display server side error message
9 years ago
Morris Jobke
f63915d0c8
update license headers and authors
9 years ago
Lukas Reschke
123807bff7
Correc type annotation
9 years ago
Lukas Reschke
34f5541088
Add `no-store` to AppFramework
9 years ago
Jenkins for ownCloud
b585d87d9d
Update license headers
9 years ago
Robin Appelman
bd1d7107bb
round width and height when cropping avatar
9 years ago
Joas Schilling
8ed27d2ce0
Create an interface for OC_Image and OCP\Image for the public API
9 years ago
Joas Schilling
8304f5f508
Fix getting the avatar of a non-existing user
9 years ago
Roeland Jago Douma
1a0f9c375b
Avatar controller moved to AppFrameWork
* Original avatarcontroller migrated to the appframework
* Added DataDisplayResponse that show data inline in the browser (used
to retrun the image)
* Removed some unneeded code
* Added unit tests for the avatarcontroller
9 years ago
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
This reverts commit 6a1a4880f0
.
9 years ago
Jenkins for ownCloud
6a1a4880f0
Updating license headers
9 years ago
Lukas Reschke
3b42d3cfed
Close session for avatar get
This somehow blocked the "Users" UI for me when having a lot of users. - Shouldn't hurt here.
9 years ago
josh4trunks
d0548b92c0
Automatically Rotate Avatar based on exif data
This commit..
* doesn't check if a local or uploaded file is square to give a user the option to crop square images
* caches uploaded images to an initial temporary file (needed to fix orientation)
* fixes orientation based on exif data
* works for encrypted local images as well
10 years ago
Thomas Müller
33987eea83
remove legacy aka deprecated code: OC_Cache
10 years ago
kondou
4907685405
Base defaultavatar text on displayname
Fix #4876
10 years ago
kondou
86143beb6a
Remove superfluous $
10 years ago
kondou
037cf22c51
Add a comment to clear defaultavatar-functionality
11 years ago
kondou
1832eb8872
Pass view in \OC_Avatar to constructor and use $_ for enable_avatars
11 years ago
kondou
d18a070a03
Have the "notsquare" error as data, not as message
11 years ago
kondou
3774632ecc
Clean up avatars and preliminary use JSON->rawlist.php
11 years ago
kondou
6db96603a0
Have login-checks and CSRF checks
11 years ago
kondou
8fd76e39cf
Use proper controller naming
11 years ago
kondou
b643c02bd5
Fix some bugs and remove \OCP\Avatar for now
11 years ago
Thomas Müller
68dce9dde5
fixing style, var name & PHPDoc
11 years ago
kondou
e7e3f1b81a
Fix some of @jancborchardt's complaints in oc_avatars
11 years ago
kondou
14cc1cd4b8
Pass setLastModifiedHeader() time()
11 years ago
kondou
5c1d64b80e
$image doesn't have data() when a defaultavatar should be used
11 years ago
kondou
91fed38f00
Also set an E-Tag header
11 years ago
kondou
44e141cc6a
Use \OC_Response for cache invalidation
11 years ago
kondou
74c9223281
Properly check for tmpavatar, invalidate cache, fix debug msgs
11 years ago
kondou
c95d4cafa9
Fix @tanghus's complains in avatars and clean up cropper after closing with "x"
11 years ago
kondou
f44cd944e0
Better naming than "ava" & "data", cache timeout, use OC.Router.registerLoadedCallback()
11 years ago
kondou
aa88eea9cf
Sanitize displayname, respect data @ $element, fix routename, clean after cropping, updateAvatar with displayname
11 years ago
kondou
80e10f01c4
Clean up
11 years ago
kondou
ecf187393b
Finish cropper, Get rid of TODOs, Improve \OCP\Avatar and "fix" unitests
11 years ago
kondou
c533b80682
Use OC_Cache and finish cropper functionality
11 years ago
kondou
0c708be76b
Use defaultavatars
11 years ago