summaryrefslogtreecommitdiffstats
path: root/lib/private/util.php
Commit message (Collapse)AuthorAgeFilesLines
* Don't check for `always_populate_raw_post_data` on HHVMLukas Reschke2015-01-231-0/+14
| | | | | | HHVM seems to have problems with this at the moment (even setting those values in the php.ini of HHVM doesn't have helped much) and thus the unit test execution failed. So it's better if we disable this check for now for HHVM.
* Merge pull request #13593 from owncloud/add-check-for-raw-post-dataMorris Jobke2015-01-221-2/+17
|\ | | | | Add check for `HTTP_RAW_POST_DATA` setting for >= 5.6
| * translate error messagesMorris Jobke2015-01-221-4/+4
| |
| * Add check for `HTTP_RAW_POST_DATA` setting for >= 5.6Lukas Reschke2015-01-221-0/+15
| | | | | | | | | | | | PHP 5.6 otherwise throws notices for perfectly valid code which results in broken endpoints. Fixes https://github.com/owncloud/core/issues/13592
* | Merge pull request #13314 from owncloud/login-hook-logoutMorris Jobke2015-01-221-1/+3
|\ \ | |/ |/| Return false if the login is canceled in a hook
| * Allow custom error messages for the login pageRobin Appelman2015-01-221-1/+3
| |
* | ignore coreBernhard Posselt2015-01-141-1/+4
| |
* | move check into addTranslation methodBernhard Posselt2015-01-141-11/+1
| |
* | dont load core scritpsBernhard Posselt2015-01-141-1/+3
| |
* | only load translsations for appsBernhard Posselt2015-01-141-1/+3
| |
* | make translation lookup faster (O(n) -> O(1))Bernhard Posselt2015-01-141-2/+2
| |
* | autoload app's js translationsBernhard Posselt2015-01-141-0/+7
| |
* | adapt decrypt all and restore/delete key backups to the new folder structure ↵Bjoern Schiessle2015-01-131-4/+4
|/ | | | for encryption key introduced with OC8
* Verify whether value is already normalizedLukas Reschke2015-01-101-5/+8
| | | | | | | | Apparently `normalizer_normalize` is not verifying itself whether the string needs to be converted or not. Or does it at least not very performantly. This simple change leads to a 4% performance gain on the processing of normalizeUnicode. Since this method is called quite often (i.e. for every file path) this has actually a measurable impact. For examples searches are now 200ms faster on my machine. Still not perfect but way to go. Part of https://github.com/owncloud/core/issues/13221
* check for working htaccess will result in a dead lock because the server is ↵Thomas Müller2015-01-081-0/+5
| | | | blocking the request to itself - fixes #13153
* Merge pull request #13043 from owncloud/check-for-hashThomas Müller2014-12-281-1/+2
|\ | | | | Check for hash
| * Check for hashLukas Reschke2014-12-281-1/+2
| | | | | | | | See https://github.com/owncloud/core/pull/13042
* | remove EditionFrank Karlitschek2014-12-251-2/+0
| |
* | Automatically detect the edition based on the enterprise_key app.Frank Karlitschek2014-12-251-2/+6
|/
* make sure styles and scripts are only loaded onceThomas Müller2014-12-161-9/+25
|
* Deprecate Util::formatDate()Joas Schilling2014-12-101-18/+11
| | | | Make DateTimeFormatter a service and adjust tests that have been inaccurate
* Remove checks for safe mode and magic quotesLukas Reschke2014-12-051-20/+0
| | | | | | | | | | Both are removed from 5.4.0 Safe Mode: http://php.net/manual/en/features.safe-mode.php > This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0. Magic Quotes: http://php.net/manual/en/security.magicquotes.php > This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.
* PHP 5.4 is now required for masterLukas Reschke2014-12-041-11/+2
| | | | :beers:
* Replace deprecated constant with new class constantJoas Schilling2014-11-251-1/+1
|
* Check for XMLWriter classLukas Reschke2014-11-201-0/+1
| | | | This is not installed by default in all cases and will break the DAV features of ownCloud. Lot's of reports such as https://github.com/owncloud/ios-issues/issues/167#issuecomment-63798507
* ability to add bower resourcesMorris Jobke2014-11-031-16/+42
| | | | | | * add addVendorScript & addVendorStyle * refactoring of addScript and addStyle * add shortcuts vendorScript and vendorStyle
* Merge pull request #11080 from owncloud/addheader-text-2Vincent Petry2014-10-301-3/+3
|\ | | | | 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-3/+3
| | | | | | | | | | | | | | | | | | $text parameter Also support closing tags with no text content given Conflicts: lib/private/template.php
* | in case a translation javascript is not found we no longer bail outThomas Müller2014-10-291-1/+1
| | | | | | | | remove translation.php
* | Added OC.L10N namespace with translation functionsVincent Petry2014-10-291-2/+20
|/ | | | | | | | | | | 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 #11786 from owncloud/MakeSupportedDBsConfigurableLukas Reschke2014-10-271-6/+3
|\ | | | | Make supported DBs configurable within config.php
| * Make supported DBs configurable within config.phpLukas Reschke2014-10-271-6/+3
| | | | | | | | | | | | This commit will make the supported DBs for installation configurable within config.php. By default the following databases are tested: "sqlite", "mysql", "pgsql". The reason behind this is that there might be instances where we want to prevent SQLite to be used by mistake. To test this play around with the new configuration parameter "supportedDatabases".
* | Add type hinting to functionsLukas Reschke2014-10-241-2/+2
|/ | | | It's only reasonable to have proper type hinting here which might even help us to catch bugs.
* Make files non executableLukas Reschke2014-10-241-0/+0
| | | | There is not much sense in having these files marked executable, we should avoid that.
* Log some basic eventsRobin Appelman2014-10-201-0/+4
|
* make skeleton compatible with objectstoreJörn Friedrich Dreyer2014-10-201-21/+25
| | | | suspend encryption proxy when copying skeleton
* in cli mode return true for isHtaccessWorkingJörn Friedrich Dreyer2014-10-151-1/+1
|
* Merge pull request #11356 from owncloud/redirect-only-to-the-same-domainLukas Reschke2014-10-011-2/+4
|\ | | | | Redirect only to absolute URL
| * Redirect only to absolute URLLukas Reschke2014-09-291-2/+4
| | | | | | | | We do not want to redirect to other domains using the "?redirect_url=" feature. Please notice, that the ownCloud project does not consider open redirectors as security issue.
* | Remove dead codeLukas Reschke2014-09-291-17/+0
|/
* Merge pull request #10934 from owncloud/datadir-write-setupVincent Petry2014-09-251-23/+27
|\ | | | | Don't complain about non-writable datadirs before we're installed
| * Don't complain about non-writable datadirs before we're installedRobin Appelman2014-09-181-17/+19
| |
| * Inject config into checkserver and cleanup testsRobin Appelman2014-09-181-8/+10
| |
* | Merge pull request #7051 from owncloud/postsetupajaxcheckVincent Petry2014-09-231-47/+0
|\ \ | | | | | | Moved WebDAV check to client side JS
| * | Moved WebDAV and internet checks to client side JSVincent Petry2014-09-231-47/+0
| |/ | | | | | | | | | | | | - Added setup checks in JavaScript - Moved isWebDAVWorking to JS using SetupChecks - Moved internet connection checks to an ajax call that goes through the server
* | Merge pull request #11222 from owncloud/store-users-timezone-masterThomas Müller2014-09-231-7/+17
|\ \ | | | | | | send browsers timezone back tp the server on login
| * | enhance formatDate function to accept an optional argument containing the ↵Thomas Müller2014-09-221-7/+17
| |/ | | | | | | time zone
* | Merge pull request #11241 from owncloud/use-lower-caseThomas Müller2014-09-231-1/+1
|\ \ | | | | | | Use only lower-case letters
| * | Use only lower-case lettersLukas Reschke2014-09-221-1/+1
| |/ | | | | | | Fixes https://github.com/owncloud/core/issues/11239
* / Do only follow HTTP and HTTPS redirectsLukas Reschke2014-09-221-94/+6
|/ | | | | | | | We do not want to follow redirects to other protocols since they might allow an adversary to bypass network restrictions. (i.e. a redirect to ftp:// might be used to access files of a FTP server which might be in a secure zone and not be reachable from the net but from the ownCloud server) Get final redirect manually using get_headers() Migrate to HTTPHelper class and add unit tests