summaryrefslogtreecommitdiffstats
path: root/lib/private
Commit message (Collapse)AuthorAgeFilesLines
* Inlince oc.js if possible!Roeland Jago Douma2016-10-251-1/+17
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move browserSupportsCspV3 to CSPNonceManagerRoeland Jago Douma2016-10-254-22/+40
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move oc.js to a proper classRoeland Jago Douma2016-10-252-1/+246
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #1891 from nextcloud/downstream-26430Lukas Reschke2016-10-251-29/+34
|\ | | | | add upgrade command before repair, handle NeedsUpgradeException better
| * add upgrade command before repair, handle NeedsUpgradeExcaption betterJörn Friedrich Dreyer2016-10-241-29/+34
| |
* | Merge pull request #1871 from nextcloud/use-csp-noncesMorris Jobke2016-10-256-6/+116
|\ \ | | | | | | Use CSP nonces
| * | Add ContentSecurityPolicyNonceManagerLukas Reschke2016-10-242-0/+67
| | | | | | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
| * | Add support for CSP noncesLukas Reschke2016-10-244-6/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CSP nonces are a feature available with CSP v2. Basically instead of saying "JS resources from the same domain are ok to be served" we now say "Ressources from everywhere are allowed as long as they add a `nonce` attribute to the script tag with the right nonce. At the moment the nonce is basically just a `<?php p(base64_encode($_['requesttoken'])) ?>`, we have to decode the requesttoken since `:` is not an allowed value in the nonce. So if somebody does on their own include JS files (instead of using the `addScript` public API, they now must also include that attribute.) IE does currently not implement CSP v2, thus there is a whitelist included that delivers the new CSP v2 policy to newer browsers. Check http://caniuse.com/#feat=contentsecuritypolicy2 for the current browser support list. An alternative approach would be to just add `'unsafe-inline'` as well as `'unsafe-inline'` is ignored by CSPv2 when a nonce is set. But this would make this security feature unusable at all in IE. Not worth it at the moment IMO. Implementing this offers the following advantages: 1. **Security:** As we host resources from the same domain by design we don't have to worry about 'self' anymore being in the whitelist 2. **Performance:** We can move oc.js again to inline JS. This makes the loading way quicker as we don't have to load on every load of a new web page a blocking dynamically non-cached JavaScript file. If you want to toy with CSP see also https://csp-evaluator.withgoogle.com/ Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | | Merge pull request #1890 from nextcloud/downstream-25428Morris Jobke2016-10-252-2/+28
|\ \ \ | | | | | | | | fixing php 32 bit (arm) filemtime on large file issue (#18971) (#25428)
| * | | Add check for linux osLukas Reschke2016-10-251-1/+5
| | | | | | | | | | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
| * | | Move function to LargeFileHelperLukas Reschke2016-10-252-1/+16
| | | | | | | | | | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
| * | | fixing php 32 bit (arm) filemtime on large file issue (#18971) (#25428)Boris Rybalkin2016-10-251-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | * fixing php 32 bit (arm) filemtime on large file issue (#18971) * cast to int
* | | | Remove not existent function callLukas Reschke2016-10-252-12/+2
|/ / / | | | | | | | | | | | | | | | | | | - Removes a not existent function call - Removes a fallback for Windows Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | | Merge pull request #1884 from nextcloud/downstream-26292Lukas Reschke2016-10-251-0/+3
|\ \ \ | | | | | | | | Fix logClientIn for non-existing users (#26292)
| * | | Fix logClientIn for non-existing users (#26292)Vincent Petry2016-10-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The check for two factor enforcement would return true for non-existing users. This fix makes it return false in order to be able to perform the regular login which will then fail and return false. This prevents throwing PasswordLoginForbidden for non-existing users.
* | | | Merge pull request #1452 from nextcloud/appconfig-endpointJoas Schilling2016-10-251-0/+1
|\ \ \ \ | | | | | | | | | | Appconfig endpoint
| * | | | Make AppConfig part of the public APIJoas Schilling2016-10-211-0/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | | Merge pull request #1283 from nextcloud/us_files-ui-webdav-uploadLukas Reschke2016-10-251-0/+8
|\ \ \ \ \ | |_|/ / / |/| | | | Use Webdav PUT for uploads
| * | | | Fix permision maskRoeland Jago Douma2016-10-241-0/+8
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | If we move a file from the temp part file to the original file we don't need update permissions. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | | Merge pull request #1829 from nextcloud/downstream-26256Morris Jobke2016-10-241-0/+1
|\ \ \ \ | | | | | | | | | | Fix login page handling for disabled users
| * | | | Changed request to not add a prefix to the url (#26256)Sergio Bertolín2016-10-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Changed request to not add a prefix to the url * Expecting forbidden instead of service unavailable * Handling login exceptions
* | | | | Merge pull request #1885 from nextcloud/downstream-26295Morris Jobke2016-10-242-11/+31
|\ \ \ \ \ | | | | | | | | | | | | App dependencies are now analysed on app enable as well - not only on…
| * | | | | App dependencies are now analysed on app enable as well - not only on app ↵Thomas Müller2016-10-242-11/+31
| | |/ / / | |/| | | | | | | | | | | | | install.
* / | | | Remove checks whether OC is running on Windows pt. 2RealRancor2016-10-242-29/+3
|/ / / /
* | | | Remove sensible information from exception messageMorris Jobke2016-10-241-6/+6
| | | | | | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | | Add message to NotSquareException thrown from AvatarOlivier Mehani2016-10-242-7/+7
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This prevents cryptic messages such as the following, from `user_ldap`: Could not set avatar for uid=user,ou=People,dc=example,dc=net, because: Signed-off-by: Olivier Mehani <shtrom@ssji.net> Add message to NotPermittedException thrown from Files\Nodes\Folder Ditto. Don't use translation macros here as this seems to be pretty low-level errors that generally get caught and prettified, and I don't want to unduly clog down the lower layers. Signed-off-by: Olivier Mehani <shtrom@ssji.net> fixup! Add message to NotPermittedException thrown from Files\Nodes\Folder
* | | Merge pull request #1820 from nextcloud/4byte-filenamesRoeland Jago Douma2016-10-243-3/+27
|\ \ \ | | | | | | | | Allow 4byte unicode filenames on supported platforms
| * | | Added method to DB and fix testRoeland Jago Douma2016-10-241-0/+11
| | | | | | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | | Allow 4byte unicode filenames on supported platformsRobin Appelman2016-10-202-3/+16
| |/ / | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #1832 from nextcloud/select2-into-coreLukas Reschke2016-10-221-1/+5
|\ \ \ | |_|/ |/| | Select2 into core
| * | Template css orderJohn Molakvoæ2016-10-211-1/+5
| |/ | | | | | | | | | | | | | | Select2 systemtags removal Settings again Fix Script Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Merge pull request #1835 from nextcloud/downstream-24948Morris Jobke2016-10-207-7/+14
|\ \ | | | | | | Move OC\Files\Storage\Shared to the right namespace
| * | Fix shared storage namespace in DecryptAll classVincent Petry2016-10-201-1/+1
| | |
| * | Move OC\Files\Storage\Shared to the right namespaceJoas Schilling2016-10-206-6/+13
| |/
* | Get rid of very old oc:// stream wrapper (#26381)Vincent Petry2016-10-201-154/+0
| |
* | Merge pull request #1826 from nextcloud/downstream-26391Morris Jobke2016-10-201-2/+2
|\ \ | | | | | | Fix post_unshareFromSelf hook parameter format
| * | Fix post_unshareFromSelf hook parameter formatVincent Petry2016-10-201-2/+2
| |/ | | | | | | | | | | | | | | | | | | When unsharing from self in a group share situation, the share items passed to the post_unshareFromSelf hook were using the wrong format in which the attribute names (ex: "share_type") have non camel-case format. This fix makes sure that in group sharing case we use the correct format. It looks like the code was already producing it but in array_merge it was not using it and adding the unprocessed one.
* / Ensure $commands being an array - fixes #26073Thomas Müller2016-10-201-0/+3
|/
* Remove unneeded compatibility polyfillsMorris Jobke2016-10-201-1/+0
| | | | | | | | | | | | | | - `Object.create` supported with IE9+: https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Object/create#Browser_compatibility - `Object.keys` supported with IE9+: https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Object/keys#Browser_compatibility - `Array.prototype.filter` supported in IE9+: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter#Browser_compatibility - `Array.prototype.indexOf` supported in IE9+: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf#Browser_compatibility - `Array.prototype.map` supported in IE9+: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map#Browser_compatibility - `Function.prototype.bind` supported in IE9+: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind#Browser_compatibility - `String.prototype.trim` supported with IE9+: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim#Browser_compatibility - `outerHTML` supported with Firefox 11+: https://developer.mozilla.org/en-US/docs/Web/API/Element/outerHTML#Browser_compatibility - `window.devicePixelRatio` supported in IE11+: http://caniuse.com/#feat=devicepixelratio Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unneeded placeholder polyfillMorris Jobke2016-10-201-1/+0
| | | | | | | * placeholders are supported in IE11+ * http://caniuse.com/#feat=input-placeholder Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix like queries in the QueryBuilderJoas Schilling2016-10-192-5/+29
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Ignore failures of collation change in the pre update stepJoas Schilling2016-10-192-11/+30
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Correctly save and pass on the charsetJoas Schilling2016-10-191-2/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fixing ctor callThomas Müller2016-10-193-5/+5
|
* Add config option to update charset of mysql to utf8mb4Morris Jobke2016-10-197-8/+36
| | | | | * fully optional * requires additional options set in the database
* Merge pull request #1734 from nextcloud/setvalue_optLukas Reschke2016-10-181-0/+19
|\ | | | | AllConfig setUserValue opt
| * Use cache to determine if value need to be updatedRoeland Jago Douma2016-10-131-0/+19
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #1722 from nextcloud/hide-storage-warningsMorris Jobke2016-10-181-1/+1
|\ \ | | | | | | hide storage wrapper warning for the readonly storage
| * | hide storage wrapper warning for the readonly storageMorris Jobke2016-10-131-1/+1
| |/ | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #1449 from nextcloud/comments-user-mentionMorris Jobke2016-10-172-21/+68
|\ \ | | | | | | Notifications for simple @-mentioning in comments