summaryrefslogtreecommitdiffstats
path: root/lib/private/util.php
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Deduplicate dependency checksLukas Reschke2014-09-161-70/+42
| | | | Some code that I also used for https://github.com/owncloud/administration/pull/11
* use intl's native normalizer_normalize() in case the module is availableThomas Müller2014-09-111-7/+5
|
* allow prefilling loginJörn Friedrich Dreyer2014-09-081-2/+2
|
* Merge pull request #10818 from owncloud/enableappforgroupfixLukas Reschke2014-09-041-6/+10
|\ | | | | Fix upgrade process when apps enabled for specific groups
| * Fix upgrade process when apps enabled for specific groupsVincent Petry2014-09-021-6/+10
| | | | | | | | | | | | | | Fix issue where the currently logged user was causing side-effects when upgrading. Now setting incognito mode (no user) on update to make sure the whole apps list is taken into account with getEnabledApps() or isEnabled().
* | Merge pull request #10790 from cbhp/masterLukas Reschke2014-09-031-1/+6
|\ \ | | | | | | added missing User-Agents
| * | always use a user-agent constantcbhp2014-09-031-4/+6
| | | | | | | | | | | | | | | | | | Some providers block connections with missing user-agents. Also user-agents are useful for analyzing requests. I've added a USER_AGENT constant that is used in cURL and in file_get_contents.
| * | added missing User-Agentscbhp2014-08-311-0/+3
| |/ | | | | | | header "User-Agent" was missed
* | Use proper RNG generatorLukas Reschke2014-09-031-1/+1
| | | | | | | | | | OC_Util::generateRandomBytes() only returns lowercase alphanumeric values. We should use the new RNG which has a broader characterset.
* | Only return lowercase letters and digits for backwards compatbilityLukas Reschke2014-09-031-1/+1
| |
* | Merge branch 'master' into securityutilsLukas Reschke2014-08-311-13/+13
|\| | | | | | | | | Conflicts: lib/private/util.php
| * Use public api for getting l10nRobin Appelman2014-08-311-5/+5
| |
| * Remove insecure fallback random number generationRobin Appelman2014-08-291-11/+3
| |
| * kill OC::$sessionJörn Friedrich Dreyer2014-08-291-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | maintain deprecated \OC::$session when getting or setting the session via the server container or UserSession restore order os OC::$session and OC::$CLI remove unneded initialization of dummy session write back session when $useCustomSession is true log warning when deprecated app is used