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
Felix Moeller
afadf93d31
Checkstyle: many fixes
13 years ago
Felix Moeller
dfc8228fb4
NoSpaceAfterComma
13 years ago
Victor Dubiniuk
d428d72dab
Fix mimetype detection with the 'file' utility
13 years ago
Felix Moeller
e73b817a38
Checkstyle: NoSpaceAfterComma
13 years ago
Felix Moeller
2d61f03452
More Checkstyle cleanup
...
This is for all LowerCaseConstant warnings
13 years ago
Felix Moeller
03581ef463
Correct a first issue Checkstyle is complaining about ...
...
This is BracketsNotRequired
13 years ago
Bart Visscher
04824162d9
core.js and core.css don't need to be absolute
13 years ago
Sam Tuke
8b01286a5d
Merged branch 'master'
13 years ago
Björn Schießle
4d451f649d
fixed offset calculation (bug #1961 )
13 years ago
Robin Appelman
aaa1b73364
don't use depricated OC_Filesystem
13 years ago
Robin Appelman
258782584e
fix mimetype detection using the 'file' command in some edge cases
13 years ago
Bart Visscher
22d22d19c0
Do urlencoding in linkTo functions
13 years ago
Robin Appelman
4131b205d4
fix some more phpdoc
13 years ago
Björn Schießle
2570ea7114
don't interpret strpos '0' as 'false' in while loop
13 years ago
Björn Schießle
1207ae1f99
add leading '?' to parameter list (fixes bug #1732 )
13 years ago
Bart Visscher
3efe1d3b24
Add linkToRoute functionality
13 years ago
Thomas Mueller
3829460ab8
adding space between) and {
13 years ago
Bart Visscher
1a46192433
Add args parameter to linkTo(Absolute) function, to append the args automaticly
13 years ago
Michael Gapczynski
0a9d1ed3a6
Initial previewer for public links
13 years ago
Bart Visscher
16dacba490
Routing: And start using them from php
13 years ago
Bart Visscher
99ce7ba1df
Move serverHost and serverProtocol functions to OC_Request
13 years ago
Bart Visscher
c4f1a1de5b
Added function to make url absolute
13 years ago
Arthur Schiwon
6b320a2604
provide recursiveArraySearch as Helper function and make available through API
13 years ago
Robin Appelman
856d9c0b54
some indention fixes
13 years ago
Robin Appelman
2a73678fef
use file extension for determining mimetypes on default
...
should be more reliable for files that "look like" other types based on their magic numbers such as odf and docx files
also a lot faster then the old way
13 years ago
Robin Appelman
48306a3c4f
fix unused variables
13 years ago
Arthur Schiwon
52822652bc
provide multibyte aware helper functions mb_str_replace, mb_substr_replace and mb_array_change_key_case for handling with UTF 8
13 years ago
Florian Hülsmann
4ed55315e7
fixed linkTo()
13 years ago