Thomas Müller
8cf9336bcb
storage information is path specific
12 years ago
Thomas Müller
1e4ebf47e2
webdav quota now displays the same values as the web interface does
12 years ago
Valerio Ponte
881e362f93
final fix for xsendfile zip generation race condition
12 years ago
Robin Appelman
9321eceed6
add the option to have templates for newly created files
12 years ago
Robin Appelman
fc332acf8a
split of mimetype detection code from OC_Helper, adding the option for apps to register additional mimetype mappings
12 years ago
Jan-Christoph Borchardt
5a77b67147
change long couldn't be determined string to question mark again
12 years ago
Robin Appelman
d042c8f166
use renamed constants
12 years ago
Bart Visscher
df8ad46dae
Change exit calls to throwing an exception
...
This way the error won't be fatal in a unit test
12 years ago
Bart Visscher
22c29eb64b
Fix renaming using parenthesis
12 years ago
Bart Visscher
424ec94680
Make buildNotExistingFileName testable and write unittests
12 years ago
Roland Hager
a06d901e37
Fix: The check if upload_max_filesize or post_max_size is 0 fails if only one of them is 0.
...
$upload_max_filesize and $post_max_size need to be casted to (int) to match "=== 0"
12 years ago
Robin Appelman
85abede9bf
actually return result
12 years ago
Robin Appelman
0470a5ba94
fix variable name
12 years ago
Robin Appelman
cf7321915d
seperate mimetype guessing from filename
12 years ago
Michael Gapczynski
59655e9afd
Style fixes
12 years ago
Robin Appelman
24a401a548
Cache mimetype icons
12 years ago
Bernhard Posselt
b98b56e4a8
check if there is a default/ folder in the theme directory if no theme exists
12 years ago
Valerio Ponte
033c94d076
fixed xsendfile zip generation race condition
12 years ago
Robin Appelman
8a97afac6f
Don't show storage space warning when the free space can't be determined
12 years ago
Robin Appelman
319e3f162c
Don't block uploads if the max upload size is unknown
12 years ago
Robin Appelman
32b8fd8fb7
Improve handeling of unlimited max upload size
12 years ago
Björn Schießle
eabfd9b69b
put value assignment into brackets
12 years ago
Björn Schießle
d8137fdf66
return both, count and result if the operation succeeded or failed. Maybe in some cases it is useful to know how much bytes where copied
12 years ago
Björn Schießle
5b94959686
using the number of writen bytes as indicator if streamCopy() was successfully. Instead check if fwrite returns the number of bytes or false
12 years ago
Robin Appelman
d96146a017
Give storage backends the option to define having no known free space
...
When this is the case only the configured max upload size is taking into account for uploading
12 years ago
Bart Visscher
ffae6f4b84
Style-fix: Breakup long lines
12 years ago
Lukas Reschke
46103e62d2
Coding style
12 years ago
Lukas Reschke
1b10032556
Use sanitizeHTML instead of stripslashes + htmlspecialchars
12 years ago
Jörn Friedrich Dreyer
1ef3e4c5c6
simplyfy mimetype parsing of 'file' output
12 years ago
Michael Gapczynski
7237ebf08b
Fix OC_Helper and change deprecated methods
12 years ago
TheSFReader
9f5847b739
Simplify the code and remove a first unnecessary (and non conform) '&' character when there are pending arguments
12 years ago
Lukas Reschke
42b924da0e
Also replace the backslash with a minus
...
For Windows systems
12 years ago
Thomas Mueller
5ff29b4348
fixing indent
12 years ago
Bart Visscher
5bfe4adbaa
Whitespace cleanup
12 years ago
Thomas Mueller
44e5c052b3
handling proper display of files/folders with negative size
...
refs #1162
12 years ago
Lukas Reschke
99adfbdb86
Check for string position instead of string existence
...
otherwise /foo/bar would be detected as a subfolder of /bar
THX @icewind1991
12 years ago
Lukas Reschke
b7db967dc5
Commentblocks should begin with two *
12 years ago
Lukas Reschke
c27833b143
Add @brief to description
12 years ago
Lukas Reschke
e151210a62
Simplify the isSubDirectory() function
...
isSubDirectory() checks if a specified $sub is a subdirectory of the
$parent, this is needed to prevent file inclusions.
Actually, the current code is more kind of a "hack" which I always
struggle over if browsing through source. So this should be a much
better implementation.
The implementation is really straightforward:
- [realpath()](http://php.net/manual/function.realpath.php ) expands all
symbolic links and resolves references to '/./', '/../' and extra '/'
characters in the input path and return the canonicalized absolute
pathname.
- [strpos()](php.net/manual/function.strpos.php) returns FALSE if the
substring wasn't found.
Since this is an absolutely critical piece of code, I'd like to ensure
that this is absolutely safe!
12 years ago
Thomas Mueller
dfc8d757b5
OC_Helper::is_function_enabled() added to find out if a function is available
...
And some documentation adjusted on the way
12 years ago
Thomas Mueller
2d36a20a1d
moving storage calculation code to OC_Helper::getStorageInfo()
12 years ago
Thomas Müller
39d874cd90
the maximum upload size is now part of the response of the upload and delete operation.
...
the maximum upload size is updated within the browser once an upload or delete operation has been finished
12 years ago
Bart Visscher
8256650da8
Fix "No space found after comma in function call"
12 years ago
Jörn Friedrich Dreyer
d8a171df26
implement share via link token
13 years ago
Valerio Ponte
de7e419610
Fixed style according to owncloud styleguide
13 years ago
Valerio Ponte
8e190a5a97
Moved X-Sendfile headers into OC_Files::get
...
now should work with temp files too
13 years ago
Jörn Friedrich Dreyer
0ce5e9257e
add php-doc for ellipsis
13 years ago
Jörn Friedrich Dreyer
28671d92c0
move code to better places
13 years ago
Tom Needham
0833be9d4e
Migration: On import of user accounts only import folders in home dir, use OC_Helper::copyr
...
Check files when copying recursivley
Remove obsolete method
Dont count '.' and '..' as directories when importing.
13 years ago
Felix Moeller
f8d1d7787e
Checkstyle fixes for SpaceBeforeOpenBrace
13 years ago