summaryrefslogtreecommitdiffstats
path: root/lib/helper.php
Commit message (Collapse)AuthorAgeFilesLines
* Change exit calls to throwing an exceptionBart Visscher2013-07-211-2/+1
| | | | This way the error won't be fatal in a unit test
* Fix renaming using parenthesisBart Visscher2013-07-051-5/+21
|
* Make buildNotExistingFileName testable and write unittestsBart Visscher2013-07-051-1/+13
|
* Fix: The check if upload_max_filesize or post_max_size is 0 fails if only ↵Roland Hager2013-06-211-2/+2
| | | | | | one of them is 0. $upload_max_filesize and $post_max_size need to be casted to (int) to match "=== 0"
* actually return resultRobin Appelman2013-06-071-2/+2
|
* fix variable nameRobin Appelman2013-06-071-2/+2
|
* seperate mimetype guessing from filenameRobin Appelman2013-06-061-12/+22
|
* Style fixesMichael Gapczynski2013-05-291-21/+21
|
* Cache mimetype iconsRobin Appelman2013-05-291-7/+15
|
* Merge pull request #2491 from riso/xsendfile_fix_zipBart Visscher2013-05-031-10/+14
|\ | | | | improved handling of xsendfile zip generation race condition
| * fixed xsendfile zip generation race conditionValerio Ponte2013-03-201-10/+14
| |
* | check if there is a default/ folder in the theme directory if no theme existsBernhard Posselt2013-04-241-1/+1
|/
* Don't show storage space warning when the free space can't be determinedRobin Appelman2013-03-151-2/+10
|
* Don't block uploads if the max upload size is unknownRobin Appelman2013-03-151-2/+2
|
* Improve handeling of unlimited max upload sizeRobin Appelman2013-03-151-1/+7
|
* put value assignment into bracketsBjörn Schießle2013-02-221-1/+1
|
* return both, count and result if the operation succeeded or failed. Maybe in ↵Björn Schießle2013-02-221-3/+6
| | | | some cases it is useful to know how much bytes where copied
* using the number of writen bytes as indicator if streamCopy() was ↵Björn Schießle2013-02-221-3/+5
| | | | successfully. Instead check if fwrite returns the number of bytes or false
* Give storage backends the option to define having no known free spaceRobin Appelman2013-02-161-2/+6
| | | | When this is the case only the configured max upload size is taking into account for uploading
* Style-fix: Breakup long linesBart Visscher2013-02-141-4/+8
|
* Coding styleLukas Reschke2013-02-101-1/+2
|
* Use sanitizeHTML instead of stripslashes + htmlspecialcharsLukas Reschke2013-02-101-1/+1
|
* simplyfy mimetype parsing of 'file' outputJörn Friedrich Dreyer2013-02-071-4/+3
|
* merge master into filesystemRobin Appelman2013-01-301-5/+2
|\
| * Merge remote-tracking branch 'refs/remotes/upstream/master'TheSFReader2013-01-261-0/+19
| |\
| * \ Merge remote-tracking branch 'refs/remotes/upstream/master'TheSFReader2013-01-251-3/+21
| |\ \
| * | | Simplify the code and remove a first unnecessary (and non conform) '&' ↵TheSFReader2013-01-251-5/+2
| | | | | | | | | | | | | | | | character when there are pending arguments
* | | | Fix OC_Helper and change deprecated methodsMichael Gapczynski2013-01-261-3/+3
| | | |
* | | | merge master into filesystemRobin Appelman2013-01-261-0/+19
|\ \ \ \ | | |_|/ | |/| |
| * | | Merge pull request #1059 from owncloud/fixing-998-masterThomas Müller2013-01-261-0/+19
| |\ \ \ | | |_|/ | |/| | Fixing 998 master
| | * | Merge branch 'master' into fixing-998-masterThomas Mueller2013-01-181-27/+28
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: apps/files/ajax/upload.php apps/files/js/files.js
| | * \ \ Merge branch 'master' into fixing-998-masterThomas Mueller2013-01-061-18/+43
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: lib/helper.php
| | * | | | moving storage calculation code to OC_Helper::getStorageInfo()Thomas Mueller2013-01-021-0/+19
| | | | | |
* | | | | | merge master into filesytemRobin Appelman2013-01-201-3/+21
|\| | | | |
| * | | | | Also replace the backslash with a minusLukas Reschke2013-01-191-1/+2
| | |_|/ / | |/| | | | | | | | | | | | | For Windows systems
| * | | | Merge pull request #986 from owncloud/fixing-784-masterThomas Müller2013-01-181-2/+19
| |\ \ \ \ | | |_|_|/ | |/| | | the maximum upload size is now part of the response of the upload and de...
| | * | | fixing indentThomas Mueller2013-01-181-16/+16
| | | | |
| | * | | Merge branch 'master' into fixing-784-masterThomas Mueller2013-01-061-18/+43
| | |\ \ \ | | | | |/ | | | |/| | | | | | | | | | | | | | | | | | | | | Conflicts: apps/files/ajax/upload.php apps/files/js/files.js lib/helper.php
| | * | | the maximum upload size is now part of the response of the upload and delete ↵Thomas Müller2012-12-201-0/+17
| | | |/ | | |/| | | | | | | | | | | | | | | | | operation. the maximum upload size is updated within the browser once an upload or delete operation has been finished
* | | | merge master into filesystemRobin Appelman2013-01-161-1/+5
|\| | |
| * | | Whitespace cleanupBart Visscher2013-01-161-1/+1
| | | |
| * | | handling proper display of files/folders with negative sizeThomas Mueller2013-01-141-0/+4
| | | | | | | | | | | | | | | | refs #1162
* | | | merge master into filesystemRobin Appelman2013-01-151-24/+4
|\| | |
| * | | Check for string position instead of string existenceLukas Reschke2013-01-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | otherwise /foo/bar would be detected as a subfolder of /bar THX @icewind1991
| * | | Commentblocks should begin with two *Lukas Reschke2013-01-131-1/+1
| | | |
| * | | Add @brief to descriptionLukas Reschke2013-01-131-1/+1
| | | |
| * | | Simplify the isSubDirectory() functionLukas Reschke2013-01-131-22/+2
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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!
* | | merge master into filesystemRobin Appelman2013-01-071-19/+44
|\| |
| * | OC_Helper::is_function_enabled() added to find out if a function is availableThomas Mueller2013-01-041-18/+43
| |/ | | | | | | And some documentation adjusted on the way
* | merge master into filesystemRobin Appelman2012-12-151-1/+1
|\|