summaryrefslogtreecommitdiffstats
path: root/lib/public/util.php
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate Util::formatDate()Joas Schilling2014-12-101-0/+2
| | | | Make DateTimeFormatter a service and adjust tests that have been inaccurate
* Replace deprecated constant with new class constantJoas Schilling2014-11-251-2/+2
|
* Merge pull request #11080 from owncloud/addheader-text-2Vincent Petry2014-10-301-2/+4
|\ | | | | Fix the addHeader tag attributes text methods to not ignore the text parameter
| * Fix the "addHeader($tag, $attributes, $text)" methods to not ignore the ↵Lukas Reschke2014-10-281-2/+4
| | | | | | | | | | | | | | | | | | $text parameter Also support closing tags with no text content given Conflicts: lib/private/template.php
* | Added OC.L10N namespace with translation functionsVincent Petry2014-10-291-0/+9
|/ | | | | | | | | | | Added addTranslations and fixed de.js file Fixed de.js to use OC.L10N.register() and use to correct expected format. Added JS unit tests for OC.L10N class Include translations JS script for all apps
* Merge pull request #10934 from owncloud/datadir-write-setupVincent Petry2014-09-251-1/+1
|\ | | | | Don't complain about non-writable datadirs before we're installed
| * Inject config into checkserver and cleanup testsRobin Appelman2014-09-181-1/+1
| |
* | Merge pull request #11019 from owncloud/do-not-show-exception-to-enduserLukas Reschke2014-09-231-28/+10
|\ \ | | | | | | Do not show exception to the end-user - use a proper error page instead
| * | Do not show exception to the end-userLukas Reschke2014-09-171-28/+10
| |/ | | | | | | Log the error instead of potentially leaking sensitive information
* / enhance formatDate function to accept an optional argument containing the ↵Thomas Müller2014-09-221-2/+4
|/ | | | time zone
* Merge pull request #7254 from owncloud/core-sortalgoLukas Reschke2014-09-161-0/+11
|\ | | | | Fixed JS sort comparator to be consistent between JS and PHP
| * Fixed file list sortingVincent Petry2014-08-111-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | Now using a natural sort algorithm that is more consistent between JS and PHP (although not perfect in some corner cases) - added OC.Util.naturalSortComparator that uses the same algo that was used for the user list - changed user list and files list to use OC.Util.naturalSortComparator - removed toLowerCase() and changed the comparator to use String.localeCompare() - added unit tests - added OC_NaturalSort that is used by OCP\Util::naturalSortCompare()
* | Merge branch 'master' into securityutilsLukas Reschke2014-08-311-1/+1
|\ \ | | | | | | | | | | | | Conflicts: lib/private/util.php
| * | Use public api for getting l10nRobin Appelman2014-08-311-1/+1
| |/
* / Add some security utilitiesLukas Reschke2014-08-271-0/+1
|/ | | | | | | | | | | | | | | | | | | | | | | This adds some security utilities to core including: - A library for basic crypto operations (e.g. to encrypt passwords) - A better library for cryptographic actions which allows you to specify the charset - A library for secure string comparisions Remove .htaccess Remove .htaccess Fix typo Add public API Use timing constant comparision Remove CBC constant Adjust code Remove confusing $this
* add OCS api call to set expire date for link sharesBjoern Schiessle2014-07-251-0/+9
|
* Add language parameter to public API for getL10N()Joas Schilling2014-07-211-2/+3
| | | | Fix #9756
* Prevent loadApps on upgradeVincent Petry2014-06-181-0/+9
| | | | | | Moved OC::needUpgrade() to OCP\Util::needUpgrade() to make it accessible form the router. Moved maintenance + upgrade check to the router.
* allow admin to disable sharing for specific groups of usersBjoern Schiessle2014-05-221-0/+9
|
* Remove all occurences of @brief and @returns from PHPDocMorris Jobke2014-05-191-2/+2
| | | | * test case added to avoid adding them later
* allow admin to enforce passwords for public link sharesBjoern Schiessle2014-05-161-0/+8
|
* Fix all PHPDoc types and variable names, in /libRobin McCorkell2014-05-131-8/+8
|
* Fix @return array PHPDocs, in /libRobin McCorkell2014-05-131-1/+1
|
* Replace @returns with @return, in /libRobin McCorkell2014-05-131-1/+1
|
* Some expected Sabre exceptions are now logged with DEBUG levelVincent Petry2014-05-071-4/+5
|
* Some more PHPDoc fixesLukas Reschke2014-04-211-12/+9
|
* use \OC_Mail::validateAddress() to validate the email address - fixes #7862Thomas Müller2014-03-241-1/+1
|
* Merge pull request #7794 from owncloud/extstorage-obfuscatepasswordsLukas Reschke2014-03-201-0/+9
|\ | | | | Obfuscate passwords in ext storage config
| * Added IV for ext storage password encryptionVincent Petry2014-03-191-0/+9
| |
* | Fix 'Undefined variable: message' in OCP\Util::logExceptionThomas Tanghus2014-03-201-5/+2
|/
* Added extra checks for invalid file chars in newfile.php and newfolder.phpVincent Petry2014-02-181-0/+9
| | | | | | | - added PHP utility function to check for file name validity - fixes issue where a user can create a file called ".." from the files UI - added extra checks to make sure newfile.php and newfolder.php also check for invalid characters
* Merge pull request #6748 from owncloud/fileinfoicewind19912014-02-141-1/+1
|\ | | | | Add a FileInfo class which holds all info of a file ...
| * merge master into fileinfoRobin Appelman2014-01-291-2/+11
| |\
| * | Add a FileInfo class which holds all info of a file and return that from ↵Robin Appelman2014-01-131-1/+1
| | | | | | | | | | | | getFileInfo, getDirectoryContent and search
* | | merge master into storagestatistics-reuseRobin Appelman2014-02-051-2/+25
|\ \ \
| * \ \ Merge branch 'master' into pr-exceed_upload_limit_msgPellaeon Lin2014-01-301-4/+12
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | Conflicts: apps/files/templates/index.php apps/files_sharing/templates/public.php
| | * | Merge pull request #6907 from owncloud/webdav-logexceptionsThomas Müller2014-01-271-2/+6
| | |\ \ | | | | | | | | | | Added exception logger plugin for sabre connector
| | | * | Added exception logger plugin for sabre connectorVincent Petry2014-01-271-2/+6
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Whenever an exception occurs in the sabre connector code or code called by it, it will be logged. This plugin approach is needed because Sabre already catches exceptions to return them to the client in the XML response, so they don't appear logged in the web server log. This will make it much easier to debug syncing issues.
| * | | Separate PHP upload limit and free spacePellaeon Lin2013-12-081-0/+19
| | | |
* | | | Reuse the calculated free_space in buildFileStorageStatisticsRobin Appelman2014-01-271-3/+4
| |/ / |/| |
* | | added function documentationJens-Christian Fischer2014-01-241-0/+4
| | |
* | | Add 'mail_from_address' configurationJens-Christian Fischer2014-01-241-0/+1
| |/ |/| | | | | | | | | | | | | | | | | | | In environments where there are rules for the email addresses, the "from address" that owncloud uses has to be configurable. This patch adds a new configuration variable 'mail_from_address'. If it is configured, owncloud will use this as the sender of *all* emails. (OwnCloud uses 'sharing-noreply' and 'password-noreply' by default). By using the 'mail_from_address' configuration, only this email address will be used.
* | Do not use L10n when logging exceptionsVincent Petry2013-12-161-2/+1
|/ | | | | | | | | In some specific situations, the L10N bundle isn't loadable yet (for example when there is an issue with the app_config table). In such case, we still want to be able to log the real exception. This fixes errors that say "OC_L10N_String::__toString must not throw exceptions"
* unify license headers for public API filesMorris Jobke2013-11-031-19/+19
|
* fix documentation stuffMorris Jobke2013-10-311-114/+88
|
* Added $app parameter to logExceptionVincent Petry2013-10-231-4/+4
|
* Moved logException to OCP\Util classVincent Petry2013-10-231-0/+33
|
* check if some encrypted files are left after the app was disabled and warn ↵Bjoern Schiessle2013-08-121-0/+8
| | | | the user
* return result from getL10NRobin Appelman2013-07-221-1/+1
|
* Merge pull request #3880 from owncloud/code-checkerBart Visscher2013-07-211-0/+9
|\ | | | | Add classes replaced by the public api to the code checker