Gráfico de Commits

18118 Commits

Autor SHA1 Mensagem Data
Diogo Cordeiro 0332cda6ad Initial mess 2019-07-15 04:59:58 +01:00
Diogo Cordeiro d639cee653 [SCRIPTS] Make them work in v2 by setting PUBLICDIR 2019-07-15 04:57:49 +01:00
Miguel Dantas 506b42ad69 [Embed] Updated fixup_files.php script to be able to fix broken oEmbedinfo using the --broken-oembed flag 2019-07-15 04:57:48 +01:00
Miguel Dantas e72f6d401c [Embed] Hide error from the UI and just don't display an image if the remote image is not valid 2019-07-15 04:57:48 +01:00
Miguel Dantas 3f1ace7995 [Embed] Fix bug where we we're losing track of a file, in case the image needed to be reencoded 2019-07-15 04:57:48 +01:00
Miguel Dantas 36f0ecd678 [Embed] Fixed Embed tests 2019-07-15 04:57:47 +01:00
Miguel Dantas 421b83cff0 [Embed] Fixed bug where sometimes images were written outside the site root 2019-07-15 04:57:47 +01:00
Miguel Dantas ceb8640949 [Embed] Removed old oEmbed and OpenGraph implementation 2019-07-15 04:57:47 +01:00
Miguel Dantas 76e3b8682c [Embed] Refactoring and bug fixing 2019-07-15 04:57:47 +01:00
Miguel Dantas cad11337ee [Embed] Using oscarotero/Embed as first attempt to get oEmbed/OpenGraph data, fallback
to previous implementation otherwise.
2019-07-15 04:57:46 +01:00
Miguel Dantas 49b6ca73e0 [PLUGINS] Fixed oEmbed dependents to use Embed 2019-07-15 04:57:46 +01:00
Miguel Dantas f7f32dc2a9 [Embed][DB] Renaming the 'file_oembed' table to 'file_embed' on upgrade 2019-07-15 04:57:46 +01:00
Miguel Dantas d787d2cad1 [OEmbed][Embed] Renamed OEmbed plugin to Embed 2019-07-15 04:57:40 +01:00
Miguel Dantas 03e7017520 [COMPOSER] Added embed/embed 2019-07-15 03:33:02 +01:00
Diogo Cordeiro cd46249e63 [DOCUMENTATION] New socialfy solution 2019-07-15 03:26:29 +01:00
Diogo Cordeiro 29efccbe27 [CORE] Avatars are in PUBLICDIR in v2
Fixed a bug in the Installer
2019-07-15 03:26:29 +01:00
Diogo Cordeiro 8d4dafee7e [INSTALL] Minor reformatting and modernization. Shouldn't change functionality significatively. 2019-07-15 03:26:29 +01:00
Diogo Cordeiro 933b5cc8a9 [CORE] Fixed some small issues with PEAR 2019-07-15 03:26:29 +01:00
Diogo Cordeiro 32f5f85937 [CORE][COMPOSER] Ensure we are compatible with PHP 7.0.0 2019-07-15 03:26:29 +01:00
Diogo Cordeiro c5891c3e8b [CORE] Make tests great gain 2019-07-15 03:26:29 +01:00
Diogo Cordeiro 004604f027 [DOCUMENTATION] Update description of extlib and vendor directories 2019-07-15 03:26:29 +01:00
Diogo Cordeiro 0198720dbf [CORE][COMPOSER] Add hoa/consistency
Renamed curry to callable_left_curry
2019-07-15 03:26:29 +01:00
Diogo Cordeiro e4c1a81488 [CORE] Downgrade phpseclib to a working state 2019-07-15 03:26:29 +01:00
Daniel Supernault 728afd7cc3 [DEVTOOL] Add a robust and modern REPL 2019-07-15 03:26:29 +01:00
Daniel Supernault 750950687a [CORE] Add custom favicon configuration support
Adds support for custom favicons defined in config.php that override theme favicons.
2019-07-15 03:26:29 +01:00
Daniel Supernault c54b304d0f [CORE] Use random_bytes() if available and improve common_confirmation_code() randomness.
With PHP 7 comes the [random_bytes()](https://php.net/manual/en/function.random-bytes.php) function which generates cryptographically secure pseudo-random bytes. In addition, this patch improves the `common_confirmation_code()`, improving the randomness by removing the odd look-alike constraints.
2019-07-15 03:26:29 +01:00
Daniel Supernault 490f214b95 [CORE] Remove function_exists() calls and add up default bcrypt cost to 12. 2019-07-15 03:26:29 +01:00
Daniel Supernault 4af27736da [CORE] Add Argon2I support
Add Argon2I support, disabled by default.
2019-07-15 03:26:29 +01:00
Daniel Supernault 55ed325afb [CORE] Update AuthCryptPlugin
Added password_hash() (bcrypt) support with fallback to crypt() for older PHP versions.
2019-07-15 03:26:29 +01:00
Daniel Supernault 05467f968e [CORE] Add timing safe backwards compatible password_verify 2019-07-15 03:26:29 +01:00
Diogo Cordeiro 13ce93ab77 [CORE] Move public resources to a /public directory
Advantages:
* Increases security by preventing direct access to file/
* We are careful and have a defined('GNUSOCIAL') || die() to prevent
  direct access to GS files, but we may miss one or a vendor/extlib may
  not be as careful
* Improves directory structure - It's more natural to physically
  separate what is public from what are GNU social resources
2019-07-15 03:26:29 +01:00
Diogo Cordeiro 476eed0f0f [CORE] Remove PEAR Command as it is not used 2019-07-15 03:26:29 +01:00
Diogo Cordeiro d0fb1bbd7f [FORMAT] Run php-cs-fixer in php-gettext 2019-07-15 03:26:29 +01:00
Diogo Cordeiro 541db733a8 [CORE][COMPOSER] Move plugins extlibs to composer (where appropriate) 2019-07-15 03:26:29 +01:00
Diogo Cordeiro e665e811b8 [CORE][COMPOSER] Move extlib packages with immediate composer correspondent to composer dependencies
This adds a composer.json for all dependencies that are available
2019-07-15 03:26:29 +01:00
Miguel Dantas 0ecf4b9b4e [CORE] Added documentation and fixed typo in attachments action 2019-07-15 03:25:59 +01:00
Miguel Dantas 5afa86ac95 [CORE] Fix bug where we we're losing track of a file, in case the image needed to be reencoded 2019-07-15 03:25:59 +01:00
Miguel Dantas 00d825073f [CORE] Fixed Media tests 2019-07-15 03:25:59 +01:00
Miguel Dantas 9969ff7861 [CORE][StoreRemoteMedia] Fixed bug where sometimes images were written outside the site root 2019-07-15 03:25:59 +01:00
Diogo Cordeiro cbc1ac46ce [PEAR] Modernize Validate code
Upgraded IDNA to IDNA2
Added PEAR Date
> fixed: The each function is deprecated
2019-07-15 03:25:59 +01:00
Miguel Dantas 4aa2f22387 [CORE] Fix X-Sendfile for nginx, using the X-Accel-Redirect header 2019-07-15 03:25:59 +01:00
Miguel Dantas ed5afe1ccd [CORE] Fixed bug where the http connection was using the wrong size for thumbnails, and returning the wrong one 2019-07-15 03:25:59 +01:00
Miguel Dantas ef453a49a8 [StoreRemoteMedia] StoreRemoteMedia now uses the new filename format, which allows it to display correctly in the UI. Formatting fixes 2019-07-15 03:25:59 +01:00
Miguel Dantas 3c994b5f39 [MEDIA][OEMBED] Fixed regression in OEmbed, because it relied on accessing the files directly, which previous commits broke. The File table really should have a bool... 2019-07-15 03:25:59 +01:00
Miguel Dantas 4404c100e6 [OEMBED][UI] Skip adding an image thumbnail for oembed results if we
don't have a file locally to generate it, which can happen, for
instance, if StoreRemoteMedia is disabled
2019-07-15 03:25:59 +01:00
Miguel Dantas fb00ee196d [MEDIA] Fix trying to display file wich is not available locally 2019-07-15 03:25:59 +01:00
Miguel Dantas c85fac8289 [CORE] Fixed bug where all thumbnails were using the original file 2019-07-15 03:25:59 +01:00
Miguel Dantas ad022b6c87 [INSTALL] Fixed issue in installing where default.php needs util.php but it's not loaded 2019-07-15 03:25:59 +01:00
Miguel Dantas 211db86d90 [CORE][ACTION] Removed getfile action. Superseded by attachment/*/download, which additionally uses a file hash as oposed to a filename.
Additionally, added etag and last modified HTTP headers to attachments, to more effectively take advantage of caching
2019-07-15 03:25:59 +01:00
Miguel Dantas 031c17a240 [CORE][UI] Made attachment actions and its subactions be able to identify attachments by id and by filehash. Changed the url stored in the DB to be attachment//view 2019-07-15 03:25:59 +01:00