Matias Griese
1ab2f7083c
Added module support for twig script tag: {% script module 'theme://js/module.mjs' %}
2022-01-13 12:52:23 +02:00
Matias Griese
707710d679
Added links and modules support to HtmlBlock class
2022-01-13 12:24:05 +02:00
Andy Miller
3e784a2f15
prepare for release
2022-01-12 15:26:29 -07:00
Andy Miller
21f76a1e34
Fixed typo causing ; to join files in CSS
2022-01-12 15:23:28 -07:00
Andy Miller
d329df2bb0
prepare for release
2022-01-12 12:31:34 -07:00
Andy Miller
f90232e511
typo
2022-01-12 12:29:43 -07:00
Andy Miller
57bd3c9cb5
fixed js module import when pipelined
2022-01-12 12:21:18 -07:00
Andy Miller
419692b9e4
Merge branch 'develop' of github.com:getgrav/grav into develop
2022-01-12 11:10:16 -07:00
Andy Miller
b422d9585c
small size for field
2022-01-12 11:10:12 -07:00
Matias Griese
67b9623d6c
Numeric sort for sizes: MediaObjectTrait::getAlternatives()
2022-01-12 13:29:18 +02:00
Matias Griese
bda6b26896
Added Medium::getAlternatives() to be able to list all the retina sizes
2022-01-12 12:00:41 +02:00
Andy Miller
9b2af98b0b
Merge branch 'develop' of github.com:getgrav/grav into develop
2022-01-11 12:03:22 -07:00
Andy Miller
b07bf96ad9
Support for YubiKey OTP 2-Factor authenticator
2022-01-11 12:03:13 -07:00
Matias Griese
f8f5502c40
Added Media::getRoute() and Media::getRawRoute() methods to get page route if available
2022-01-11 14:34:35 +02:00
Matias Griese
55b45fcf2f
Fixed scaled image medium filename when using non-existing retina file
2022-01-10 22:12:09 +02:00
Matias Griese
bd471cb61b
Added Utils::getExtensionsByMime() method to get all the registered extensions for the specific mime type
2022-01-10 19:40:00 +02:00
Andy Miller
7bb8d10b22
Asset blueprint refactor
2022-01-09 21:23:19 -07:00
Andy Miller
f9fcdd6c51
Revert "simplify asset collections in a single array"
...
This reverts commit 756b088ada .
# Conflicts:
# system/src/Grav/Common/Assets.php
2022-01-09 21:12:39 -07:00
Andy Miller
99ceb40c5f
improvements
2022-01-09 16:14:20 -07:00
Andy Miller
8767bfb9b0
refactoring and generic link support
2022-01-09 15:51:00 -07:00
Andy Miller
756b088ada
simplify asset collections in a single array
2022-01-09 14:35:16 -07:00
Andy Miller
c962201bae
initial js module support in assets
2022-01-09 13:29:40 -07:00
Matias Griese
2335271472
Second attempt to fix CLI --env, now works with bin/plugins
2022-01-07 21:42:25 +02:00
Matias Griese
47d7927bac
Improved onPageFallBackUrl event
2022-01-06 18:10:24 +02:00
Matias Griese
d15542e553
SVG files do not have higher quality alternative
2022-01-06 16:01:53 +02:00
Matias Griese
e6447f7203
Improved Utils::download() method to allow overrides on download name, mime and expires header
2022-01-06 15:36:29 +02:00
Djamil Legato
fbcaf991aa
cleanup
2022-01-05 12:00:12 -08:00
Matias Griese
cc8ec10098
Fixed CLI --env and --lang options having no effect if they aren't added before all the other options
2022-01-05 19:52:57 +02:00
Andy Miller
d541808604
prepare for release
2022-01-04 11:01:21 -07:00
Matias Griese
231c8a0f4c
Fixed UserObject::getAccess() after cloning the object
2022-01-04 18:47:45 +02:00
Andy Miller
b40b543790
prepare for release
2022-01-03 09:50:34 -07:00
Andy Miller
3b7921b698
updated copyright year
2022-01-03 09:14:00 -07:00
Matias Griese
6af1ee48a5
Fixed PHP 8.1 issue in Media, minor optimization
2022-01-03 16:38:11 +02:00
Matias Griese
4519971a76
Fixed Flex directory configuration creating environment configuration when it should not
2021-12-22 21:28:26 +02:00
Matias Griese
26295d5cf2
Fixed FlexIndex::call() to return null instead of failing to call undefined method
2021-12-20 14:46:20 +02:00
Andy Miller
bfc9e26f26
renamed method
2021-12-18 17:53:19 -07:00
Andy Miller
d939b1e563
Merge branch 'develop' of github.com:getgrav/grav into develop
2021-12-18 17:46:59 -07:00
Andy Miller
8343cfb278
new Plugin::upstreamConfigVar
2021-12-18 17:46:55 -07:00
Matias Griese
290a28109e
When symlinking Grav install, include also tests
2021-12-17 19:42:02 +02:00
Matias Griese
5bec5db5e1
Fixed Plugin::config() returning null in some cases
2021-12-16 14:25:51 +02:00
Matias Griese
a6fb0a14f0
Fix bad docblocks
2021-12-16 13:59:13 +02:00
Matias Griese
7cb62ddc75
Merge remote-tracking branch 'origin/develop' into develop
2021-12-16 13:55:43 +02:00
Matias Griese
0f85b831b5
Minor fixes
2021-12-16 13:55:36 +02:00
dani
530e6a4399
Update pages.yaml
...
i believe this is a mistake, the unclosed `<small>` tag is rendering the entire form this way.
2021-12-16 11:16:58 +02:00
dani
c7700c2e16
Update es.yaml
...
missing accents
2021-12-16 11:16:58 +02:00
Matias Griese
89acc59ac3
Improved UserObject cloning
2021-12-16 10:57:10 +02:00
Matias Griese
1c51bf8a66
Added UserObject::$isAuthorizedCallable to allow $user->isAuthorized() customization
2021-12-15 18:00:50 +02:00
Matias Griese
a4beb9b8bd
Fixed UserObject::$authorizeCallable binding to the user object
2021-12-15 18:00:27 +02:00
Matias Griese
484a41e42a
Added second parameter to UserObject::isMyself() method
2021-12-15 13:28:03 +02:00
Matias Griese
def62ec2a2
Fixed message about user groups not being cached
2021-12-15 12:48:02 +02:00
Matias Griese
25bc1edf31
Update Twig optimization to reflect upstream code
2021-12-10 16:20:19 +02:00
Matias Griese
420a4e3566
Add comment into TwigEnvironment
2021-12-09 21:18:10 +02:00
Matias Griese
f2a7833933
Restore debug info for flex
2021-12-09 21:12:47 +02:00
Matias Griese
491252476d
Fixed Twig being very slow when templates do not exist
2021-12-09 21:09:23 +02:00
Matias Griese
6ed453890d
Disabled pretty debug info for Flex as it slows down Twig rendering
2021-12-09 15:45:25 +02:00
Matias Griese
432f0eb9e5
Fixed some deprecation notices in flex
2021-12-09 15:07:37 +02:00
Matias Griese
236c068d70
Improve typehints
2021-12-09 14:06:58 +02:00
dani
3f3503e0f3
Update external.yaml ( #3493 )
2021-12-08 22:27:38 -07:00
Matias Griese
bc70c9b93c
Added session.secure_https to system blueprint
2021-12-08 17:40:30 +02:00
Matias Griese
90f5ff7c74
Use secure session cookies in HTTPS by default (system.session.secure_https: true)
2021-12-08 17:38:16 +02:00
Matias Griese
3bfbb1a4ef
Composer 2 checks for minimum PHP version, remove duplicated checks
2021-12-08 15:17:28 +02:00
Matias Griese
6c7064db93
Fix phpstan issues
2021-12-08 14:34:38 +02:00
Matias Griese
9df7b35c65
DomIterator keys were off-by-one
2021-12-08 12:49:13 +02:00
Matias Griese
5552ea2d70
Replace unmaintained DOMIterators by our own versions (fixes PHP 8.1 warnings)
2021-12-08 12:34:54 +02:00
Matias Griese
6079562c90
More minor fixes for PHP 8.1
2021-12-08 10:58:38 +02:00
Matias Griese
c2f394de17
Minor fix
2021-12-07 16:46:42 +02:00
Matias Griese
878de339e5
Improved FileSystem::pathinfoInternal()
2021-12-07 13:56:19 +02:00
Matias Griese
86cfba3bc9
Minor fix
2021-12-07 13:47:35 +02:00
Matias Griese
ad1e20abb7
Fixed phpstan level 4 issues in Framework
2021-12-07 13:34:36 +02:00
Matias Griese
2165743810
Fixed phpstan level 2 issues in Framework
2021-12-07 13:20:57 +02:00
Matias Griese
8f2f5e3373
Fixed RequestHandlers NotFoundException having empty request
2021-12-07 13:13:35 +02:00
Matias Griese
70c0dc6419
Improve Framework code
2021-12-07 13:10:19 +02:00
Matias Griese
5b84213fce
Improved Framework File classes
2021-12-07 13:08:05 +02:00
Matias Griese
3ad68d6d5a
Improve flex classes
2021-12-07 13:03:09 +02:00
Matias Griese
627a1510dc
Simplify exception handling for Framework Cache classses
2021-12-07 12:52:42 +02:00
Matias Griese
042d4a4603
Improved ACL classes
2021-12-07 12:50:59 +02:00
Matias Griese
b2cfc4ef5f
Fixed bad key lookup in FlexRelatedDirectoryTrait::getCollectionByProperty()
2021-12-07 12:47:09 +02:00
Matias Griese
cf6159ffe3
Fixed PHP 8.1 deprecated warning
2021-12-07 12:43:40 +02:00
Matias Griese
f04f13723d
Silence PHP 8.1 deprecation notices for Twig 1
2021-12-03 14:52:52 +02:00
Matias Griese
512c2e5d9d
Better typehints for Framework classes
2021-12-02 21:22:10 +02:00
Matias Griese
da3e32f945
PHP 8.1: Use strict parameters in Session class
2021-12-02 15:05:29 +02:00
Matias Griese
ae74f29b69
Minor fixes for Grav updater
2021-12-02 14:32:06 +02:00
Matias Griese
ecb2d31df0
PHP 8.1
2021-12-02 13:52:51 +02:00
Matias Griese
2355d799f2
PHP 8.1 fixes
2021-12-02 12:05:41 +02:00
Matias Griese
6aebbc2be4
Also Grav::exit() and Grav::redirect() never returns (typehint)
2021-12-01 16:45:45 +02:00
Matias Griese
fb4bce36cb
Grav::close() never returns (typehint)
2021-12-01 16:25:39 +02:00
Matias Griese
3321f49253
Interface fixes
2021-12-01 15:46:36 +02:00
Matias Griese
179dec4c3b
More phpstan fixes
2021-12-01 14:59:22 +02:00
Matias Griese
d59a4c63db
Added translated() method to PageTranslateInterface
2021-12-01 14:57:27 +02:00
Matias Griese
4c3daf6e6f
PHP 8.1 return type fixes
2021-11-30 21:20:17 +02:00
Matias Griese
c220b6e0c2
ControllerResponseTrait: Redirect response should be json if the extension is .json
2021-11-30 19:08:49 +02:00
Matias Griese
e4f79dbfce
Minor fixes
2021-11-30 19:02:42 +02:00
Matias Griese
d220812f5e
Minor code improvements
2021-11-30 18:59:44 +02:00
Matias Griese
d4a23c1fbe
Fixed assert
2021-11-30 18:54:03 +02:00
Matias Griese
a57c18f63f
Fixed some phpstan errors
2021-11-30 15:26:21 +02:00
Matias Griese
8256af5cfa
Fix some phpstan level 2 errors
2021-11-30 14:49:50 +02:00
Matias Griese
eae3668aee
Fixed phpstan issue
2021-11-30 14:09:14 +02:00
Matias Griese
a8d292a0d9
Added third $name parameter to Blueprint::flattenData() method, useful for flattening repeating data
2021-11-25 11:07:20 +02:00
Matias Griese
193475a0b6
Made Grav::redirect() to accept Route class
2021-11-17 10:49:39 +02:00
Andy Miller
88ffa163c4
prepare for release
2021-11-16 10:34:46 -07:00
Matias Griese
956ed013cf
Improved redirects: send redirect response in JSON if the request was in JSON
2021-11-12 12:08:13 +02:00
Matias Griese
e6911ce24a
Improved form validation JSON responses to contain list of failed fields with their error messages
2021-11-12 09:36:54 +02:00
Matias Griese
d9c9f6a5eb
Fixed form validation exceptions to use 400 Bad Request instead of 500 Internal Server Error
2021-11-12 09:35:26 +02:00
Matias Griese
2a04628459
Added FlexObject::getDiff() to see difference to the saved object
2021-11-11 20:06:24 +02:00
Matias Griese
33b473c290
Fixed FlexObject::getChanges() always returning empty array
2021-11-11 15:48:18 +02:00
Matias Griese
58b48c2f26
Do not escape ValidationException
2021-11-09 19:12:39 +02:00
Matias Griese
ad003a0fc4
Updated phpstan to v1.0
2021-11-04 08:55:53 +02:00
Matias Griese
8f9c417c04
Fixed path traversal vulnerability when using bin/grav server
2021-11-03 14:06:42 +02:00
Matias Griese
8bbf7a849b
Fixed |t(variable) twig filter in admin
2021-11-03 13:10:10 +02:00
Matias Griese
a723bcdb46
Fixed unescaped error messages in JSON error responses
2021-11-03 11:50:23 +02:00
Andy Miller
67ea6c8066
Merge branch 'develop' of github.com:getgrav/grav into develop
...
# Conflicts:
# CHANGELOG.md
2021-10-29 10:53:40 -06:00
Andy Miller
cd1dc5b43d
better vardump variable
2021-10-29 10:53:01 -06:00
Matias Griese
1d1c10f0a6
Added method Page::initialize()
2021-10-27 14:59:23 +03:00
Matias Griese
125f2a8662
Improved page cloning
2021-10-27 14:24:16 +03:00
Matias Griese
4046fed60f
Changelog update
2021-10-27 14:23:39 +03:00
Andy Miller
4db28bf47e
prepare for release
2021-10-26 13:45:30 -06:00
Andy Miller
6fc2bc4f91
Merge branch 'develop' of github.com:getgrav/grav into develop
2021-10-26 11:39:19 -06:00
Andy Miller
7dc6b71252
whitespace
2021-10-26 11:39:15 -06:00
Matias Griese
af4243aff2
User authorize() now checks user groups before superuser, allowing deny rules to work
2021-10-26 19:22:56 +03:00
Matias Griese
afc69a3229
Fixed XSS detection with :
2021-10-25 20:37:59 +03:00
Matias Griese
05101650ce
Merge remote-tracking branch 'origin/develop' into develop
2021-10-22 15:07:51 +03:00
Matias Griese
715477586c
Added support to disable a form, making it readonly
2021-10-22 15:07:42 +03:00
Ricardo Verdugo
fd61f82f5a
Watermark Media Action ( #3308 )
...
* added gregwar merge media action and watermark media function
* remove the dump left by accident
* added scaling to the watermark
Co-authored-by: Ricardo <ricardo@urbansquid.london>
Co-authored-by: Andy Miller <1084697+rhukster@users.noreply.github.com>
2021-10-21 06:31:33 -06:00
Matias Griese
be44bf0b55
Fixed deprecated warnings on ArrayAccess in PHP 8.1
2021-10-20 18:56:21 +03:00
Nicolas Busseneau
08d7ad80df
fix session_store_active functionality
...
At the moment and since 1.7.19, the `system.languages.session_store_active`
setting has no effect.
Session must be initialized before URI for `$language->setActiveFromUri($uri)`
(called from `$this->initializeUri($config) -> $uri->init()`) to
properly retrieve / store `active_language` in Session.
This was previously detected in #3269 as per the code comment, but got
reversed in 2e9fe80e33 .
2021-10-20 12:24:10 +03:00
Matias Griese
33a5709903
Fixed a bug in PermissionsReader in PHP 7.3
2021-10-20 10:24:00 +03:00
Andreas Becker
280cbc2330
Update LanguageCodes.php ( #3469 )
...
Adding
my - Myanmar Burmese
sw - Swahili
lo - Lao
km - Khmer
2021-10-18 20:59:21 -06:00
Andy Miller
746e75b9e4
Merge branch 'develop' of github.com:getgrav/grav into develop
2021-10-07 08:16:38 -06:00
Andy Miller
11decd5889
Use client now
2021-10-07 08:16:14 -06:00
Matias Griese
be136d3ce4
Added support for custom form field options validation with validate: options: key|ignore
2021-10-07 14:00:17 +03:00
Matias Griese
60fd4ec516
Added UserObject::isMyself() method to check if flex user is currently logged in
2021-10-07 12:49:14 +03:00
Andy Miller
07bd1e03d0
Better backwards compatibility
2021-10-01 11:42:41 -06:00
Andy Miller
75ef1341eb
Added new HTTP\Client class for more general use
2021-09-30 17:39:49 -06:00
Andy Miller
5843e226c3
prepare for release
2021-09-29 14:22:03 -06:00
Andy Miller
8af71742a0
Merge branch 'develop' of github.com:getgrav/grav into develop
2021-09-29 10:58:20 -06:00
Andy Miller
22e550820d
updated language strings
2021-09-29 10:57:42 -06:00
Matias Griese
372f81a09e
Added BlueprintSchema::getNestedRules() method
2021-09-29 08:38:42 +03:00
Matias Griese
028e247df8
Fixed form reset causing image uploads to fail when using Flex
2021-09-24 15:09:27 +03:00
Matias Griese
8aee574069
Phpstan fixes
2021-09-24 13:18:26 +03:00
Matias Griese
da00dd9eec
Further attempt to fix :0 port [ #3439 ]
2021-09-24 12:24:14 +03:00
Matias Griese
30b55ae150
Phpstan fixes
2021-09-24 12:19:41 +03:00
Matias Griese
6b70826961
Add variable-length argument list to GravExtension::translate()
2021-09-24 10:58:05 +03:00
Djamil Legato
ae8dfde69d
Added true unique Utils::uniqueId() / {{ unique_id() }}utilities with length, prefix, and suffix support.
2021-09-23 21:40:21 -07:00
Andy Miller
63661a40e3
updated clean command
2021-09-23 19:24:57 -06:00
Andy Miller
b76ee25d49
replaced svg-sanitizer with dom-sanitizer
2021-09-23 19:22:24 -06:00
Matias Griese
370b0674bd
Fixed Folder::move() throwing an error when target folder is changed by only appending characters to the end [ #3445 ]
2021-09-21 13:42:18 +03:00
Matias Griese
e0c3e28809
Added method Pages::referrerRoute() to get the referrer route and language
2021-09-20 17:09:32 +03:00
Matias Griese
9ff605e08b
Uri::referrer() docblock update
2021-09-20 15:52:27 +03:00
Matias Griese
5593327dbc
Uri::referrer() now accepts third parameter, if set to true, it returns route without base or language code
2021-09-20 15:39:09 +03:00
Matias Griese
beba9c029d
Better Twig 3 support
2021-09-17 15:46:10 +03:00
Matias Griese
243053659c
Update to customized version of Twig DeferredExtension, improve Twig 2 compatibility
2021-09-17 15:39:16 +03:00
Andy Miller
c5fd282653
prepare for release
2021-09-16 13:49:38 -06:00
Matias Griese
d276af6fa9
Register plugin autoloaders into plugin objects
2021-09-16 18:22:09 +03:00
Matias Griese
ba19ce4919
Fixed conflicting $_original variable in Flex Pages
2021-09-15 12:40:06 +03:00
Andy Miller
b17eaba8bf
prepare for release
2021-09-14 12:59:29 -06:00
Matias Griese
0600d6a4d8
Merge remote-tracking branch 'origin/develop' into develop
2021-09-14 18:28:16 +03:00
Matias Griese
c51fb1779b
Fixed Session::setFlashCookieObject() to use the same options as the main session cookie
2021-09-14 18:28:07 +03:00
Andy Miller
a446152631
Merge branch 'develop' of github.com:getgrav/grav into develop
2021-09-13 17:41:08 -06:00
Andy Miller
61c2abee35
use a simple cron text field as custom one was confusing
2021-09-13 17:40:55 -06:00
Andy Miller
c1d520f1cf
Add date/time to text file output of scheduler
2021-09-13 17:40:39 -06:00
Matias Griese
3bd9e44155
Remove extra space #3432
2021-09-13 16:51:06 +03:00
Matias Griese
7311517d65
Fixed incorrect port :0 with nginx unix socket setup [ #3439 ]
2021-09-13 12:34:42 +03:00
Matias Griese
4568a197e7
Fixed excessive security.yaml file creation [ #3432 ]
2021-09-13 11:53:12 +03:00
Matias Griese
350134b256
Renamed conflicting $object->getOriginal() to $object->getOriginalData()
2021-09-10 19:09:56 +03:00
Matias Griese
1350cf5675
Added $object->getOriginal() to get flex objects data before it was modified with update()
2021-09-09 14:14:42 +03:00
Matias Griese
21db2e7d4a
Added support for flex-required@: not exists and flex-required@: '!exists' in blueprints
2021-09-09 14:14:16 +03:00
Matias Griese
cda08242f1
Added file upload/remove support for Flex Forms
2021-09-08 14:34:15 +03:00
Matias Griese
fc8936986f
Cast data.search.options to array
2021-09-07 18:28:36 +03:00
Matias Griese
ec37fd065f
Throwing exceptions from Twig templates fires onDisplayErrorPage.[code] event allowing better error pages
2021-09-03 18:39:41 +03:00
Matias Griese
47875a4525
Added route and request to onPageNotFound event
2021-09-03 12:23:48 +03:00
Matias Griese
61adb1e6cf
More robust way to check number step [ #3433 ]
2021-09-02 20:34:17 +03:00
Matias Griese
907e46631c
Added |yaml filter to convert input to YAML
2021-09-02 20:02:07 +03:00
Matias Griese
7a1f5539ed
Fixed validation of number type
2021-09-02 10:55:27 +03:00
Matias Griese
49087e9a53
Fixed escaping in PageIndex::getLevelListing()
2021-09-02 10:20:26 +03:00
Andy Miller
c43b375d3b
prepare for release
2021-09-01 10:39:23 -06:00
Matias Griese
a8fe62a829
Added support for task and action inside JSON request body
2021-08-31 22:25:02 +03:00
Andy Miller
fd8c44ba90
prepare for release
2021-08-31 12:21:31 -06:00
Matias Griese
f9e7f1c08e
Flex: Use str_replace() and not strtr()
2021-08-30 09:55:21 +03:00
Andy Miller
8042caee57
fixed svgImageFunction()
2021-08-27 10:26:00 -06:00
Matias Griese
3f3f63f411
Fixed Flex object types not implementing MediaInterface
2021-08-25 18:50:08 +03:00
Matias Griese
292687ea00
Fixed wrong form issue with flex objects after cache clear
2021-08-25 18:31:58 +03:00
Rotzbua
de3aa16aca
add mime for .avif image format
...
new image format developed by google
references:
https://codelabs.developers.google.com/codelabs/avif#0
https://caniuse.com/avif
2021-08-18 11:19:38 +03:00
Rotzbua
34d001cbef
fix typo mime type of .aif ( #3423 )
...
mime type should be `audio/aiff`
reference: https://en.wikipedia.org/wiki/Audio_Interchange_File_Format
2021-08-13 10:58:35 -04:00
Matias Griese
f45afd1f54
Added support for multiple mime-types per file extension [ #3422 ]
2021-08-13 13:05:32 +03:00
Matias Griese
c975f894ae
Composer update
2021-08-11 09:07:57 +03:00
Matias Griese
a9b59596d8
Fixed flex-options@ in blueprints duplicating items in array
2021-08-10 12:38:07 +03:00
Matias Griese
9333fcc1d6
Generalize FolderStorage templating
2021-08-09 21:38:01 +03:00
Matias Griese
b3426f86a3
Merge remote-tracking branch 'origin/develop' into develop
2021-08-09 19:36:23 +03:00
Matias Griese
b3e9682511
Generalize FolderStorage templating
2021-08-09 19:36:14 +03:00
Rotzbua
b3af6c9920
Change mime-type to text/javascript ( #3415 )
...
Recommended by whatwg and draft-ietf-dispatch-javascript-mjs-09 (obsoletes RFC4329)
2021-07-31 14:29:22 -06:00
Matias Griese
2e9fe80e33
Initialize $grav['uri] before session
2021-07-30 09:31:33 +03:00
Matias Griese
def389356e
Added UserObject::$authorizeCallable to allow $user->authorize() customization
2021-07-29 23:09:25 +03:00
Matias Griese
c5dfa65994
Fixed FlexDirectoryForm serialization
2021-07-29 22:14:45 +03:00
Matias Griese
c9159695aa
Fixed FlexForm serialization
2021-07-29 19:59:42 +03:00
Matias Griese
17d1786e5c
Fixed broken Twig try tag when catch has not been defined or is empty
2021-07-29 16:12:14 +03:00
Matias Griese
5437d2db1a
Fixed Flex Object missing key field value when using FolderStorage
2021-07-28 14:31:55 +03:00
Matias Griese
e390e9901e
Allow customization of security.yaml
2021-07-28 14:29:10 +03:00
Matias Griese
7c946c59f8
Include request in onPageTask and onPageAction events (defaults to null)
2021-07-26 17:27:30 +03:00
Matias Griese
506c74de55
Include active form in onPageTask and onPageAction events (defaults to null)
2021-07-26 14:39:40 +03:00
Matias Griese
ab9783102e
Fixed broken environment:// stream when it doesn't have configuration
2021-07-23 21:51:17 +03:00
Matias Griese
a8a8cce25f
Fixed GPM not using non-standard cache path [ #3410 ]
2021-07-23 09:39:21 +03:00
Matias Griese
d62e869044
Add changelog [ #3398 ]
2021-07-22 17:17:15 +03:00
Karmalakas
6dd5e0fd20
Change key setting in a loop
...
#531
2021-07-22 17:13:42 +03:00
Karmalakas
c57a29c23f
Add setCurrent() method to Page Collection
...
#531
2021-07-22 17:13:42 +03:00
Matias Griese
2866a51326
Added meta support for UploadedFile class
2021-07-22 17:01:55 +03:00
Matias Griese
21f5488d3b
Make MediaUploadTrait::getUploadSettings() public
2021-07-22 17:00:16 +03:00
Matias Griese
7b1a188cfe
Fixed error in loadDirectoryConfig() if configuration hasn't been saved [ #3409 ]
2021-07-22 16:59:42 +03:00
Andy Miller
951ce6f9f8
prepare for release
2021-07-19 12:15:54 -06:00
Matias Griese
c9448870fa
Fixed open_basedir() error with some forms
2021-07-08 14:00:53 +03:00
Andy Miller
e39d01e139
Support cloudflare + better x-forwarded-for
2021-07-06 17:44:49 -06:00
Matias Griese
35db2f61f7
Added method FlexObject::resetBlueprints()
2021-07-06 21:39:14 +03:00
Andy Miller
8af1229f65
qurantine bad SVGs
2021-07-01 15:36:26 -06:00
Matias Griese
9aa6f5b1f7
Fixed Failed to save entry: Forbidden when moving a page to a visible page [ #3389 ]
2021-07-01 14:45:24 +03:00
Matias Griese
da8e374443
Fixed Admin becoming unusable when GPM cannot be reached [ #3383 ]
2021-06-24 17:04:04 +03:00
Matias Griese
95851e8f52
Improve page search to include slug [ #3316 ]
2021-06-24 15:34:14 +03:00
Matias Griese
d2350b6786
Fixed error when using Flex SimpleStorage with no entries
2021-06-23 14:45:56 +03:00
Matias Griese
08a2abb713
Added support for loading Flex Directory configuration from main configuration
2021-06-16 21:35:43 +03:00
Andy Miller
7e41938317
prepare for release
2021-06-15 13:11:26 -06:00
Andy Miller
90f5635478
Switch to JQuery 3.x rather than 2.x
2021-06-15 10:15:12 -06:00
Djamil Legato
f1c623c14b
Fixed mutability issue when adding multiple assets with different params ( #3358 )
2021-06-14 11:55:14 -07:00
Djamil Legato
ee40ad59f2
Ensure simple second argument for priority is also supported in multi-collections with params ( fixes #3358 )
2021-06-14 10:25:16 -07:00
Matias Griese
845fac8adf
Fixed permission check when moving a page [ #3382 ]
2021-06-10 16:27:30 +03:00
Matias Griese
896695b30f
Interface FlexDirectoryInterface now extends FlexAuthorizeInterface
2021-06-10 13:55:12 +03:00
Matias Griese
ea191602da
Fixed missing styles when CSS/JS Pipeline is used and assets/ folder is missing
2021-06-10 13:16:20 +03:00
Matias Griese
28790197aa
File frontmatter.yaml isn't part of media, ignore it
2021-06-08 09:28:30 +03:00
Djamil Legato
1db66fd43d
Ported support for multi-parameter assignment in asset collection to method add ( fixes #3358 )
2021-06-04 11:21:17 -07:00
Djamil Legato
8d506db73c
Added support specifying custom attributes to assets in a collection ( fixes #3358 )
2021-06-03 15:59:01 -07:00
Djamil Legato
c288d4bd0b
Allow to unset an asset attribute by specifying null (ie, ’defer’ => null)
2021-06-03 15:51:24 -07:00
Djamil Legato
39247ac7ef
Updated blueprints inline-docs for clear_images_by_default
2021-06-02 23:35:04 -07:00
Andy Miller
6339d9f3cd
prepare for release
2021-06-02 12:23:27 -06:00
phmg701
18d7fd4c7d
Adding the addFrame method to ImageMedium ( #3323 )
...
* Update ImageMediaTrait.php
Add needed magic actions to enable image frame creation.
* Update ImageMedium.php
Adds addFrame method that can be (recursively) called from Twig.
2021-06-01 16:38:40 -06:00
Djamil Legato
76e44a1043
More regex fixes for URI
2021-06-01 15:16:39 -07:00
Andy Miller
4c0d107562
stupid fix for homebrew PHP 7.4.18+
2021-06-01 14:25:52 -06:00
Djamil Legato
d359120d81
Fixed SRI trying to calculate remote assets, only ever set integrity for local files. Use the SRI provided by the remote source and manually add it in the addJs/addCss call for remote support. ( fixes #3358 )
...
Also Fixed wrong SRI paths invoked when Grav instance as a sub folder
2021-05-27 12:26:25 -07:00
Matias Griese
278671deec
Fixed flex pages using wrong type in onBlueprintCreated event [ #3157 ]
2021-05-27 14:18:12 +03:00
Matias Griese
e28360f86a
Fixed flex pages search using only folder name [ #3316 ]
2021-05-27 13:17:24 +03:00
Matias Griese
75cef03644
Improve error on bad nested form data [ #3364 ]
2021-05-26 11:43:20 +03:00
Matias Griese
33be6946f7
Fixed the first visible child page getting ordering number 999999. [ #3365 ]
2021-05-26 11:16:31 +03:00
Andy Miller
7f23b088a4
set clear_images_by_default to false by default
2021-05-25 11:27:13 -06:00
Matias Griese
c56f9f3277
Fixed pathinfo() twig filter in PHP 7
2021-05-24 10:01:24 +03:00
Matias Griese
6198d5abf3
Improve Plugin and Theme initialization to fix PHP8 bug [ #3368 ]
2021-05-22 12:28:15 +03:00
Andy Miller
5621f5cdb0
prepare for release
2021-05-19 13:22:18 -06:00
Andy Miller
83f2097f40
trim extra line breaks
2021-05-18 21:58:37 -06:00
Matias Griese
879de1d95e
Rename property for onOutputGenerated and onOutputRendered events
2021-05-12 14:52:41 +03:00
Matias Griese
ec018f40aa
Minor update for onOutputGenerated and onOutputRendered events
2021-05-12 14:51:11 +03:00
Matias Griese
0866753617
Added page and content properties to onOutputGenerated and onOutputRendered events
2021-05-12 14:49:34 +03:00
Matias Griese
5f66f2c4a9
Fixed uploading images into Flex Object if field destination is not set
2021-05-12 10:36:25 +03:00
Matias Griese
40f08a7f8b
Flex: Mark uploaded media as uploaded
2021-05-10 20:08:18 +03:00
Matias Griese
c274337fed
Minor fix on user avatar upload
2021-05-10 18:03:56 +03:00
Matias Griese
7d01977a89
Fixed missing and commonly used methods when using system.twig.undefined_functions = false
2021-05-10 12:27:11 +03:00
Matias Griese
d058c1d4fc
Fixed copying page without changing the slug
2021-05-10 11:43:16 +03:00
Matias Griese
1a28155f1c
Update docblocks to return the actual type [ #3350 ]
2021-05-07 13:26:24 +03:00
Matias Griese
7ca7d8e045
Allow optional start date in page collections [ #3350 ]
2021-05-07 13:23:38 +03:00
Thibaut HENIN
ec98ddc2df
Improve PageCollectionInterface::dateRange signature and documentation. Report changes into implementations.
2021-05-07 13:19:09 +03:00
Thibaut HENIN
72b520745a
Simplify Collection::dateRange (same structure as PageCollection::dateRange)
2021-05-07 13:19:09 +03:00
Thibaut HENIN
9b4f0ca951
Fix dateRange when startDate is not provided (value of 0)
2021-05-07 13:19:09 +03:00
Matias Griese
a761df80db
Fixed markdown media operations not working when using image:// stream [ #3333 ] [ #3349 ]
2021-05-07 13:09:34 +03:00
Matias Griese
9059904c1a
Fixed fatal error with some markdown links
2021-05-07 11:53:32 +03:00
Matias Griese
568e728d20
Fixed twig deprecated TwigFilter messages [ #3348 ]
2021-05-06 15:02:54 +03:00
Andy Miller
d1e58eb95e
prepare for release
2021-04-29 10:22:16 -06:00
Matias Griese
9f5a15f00a
Updating a theme should always keep the custom files
2021-04-29 15:37:44 +03:00
Matias Griese
3aa47043c9
Added option to set flash folder in FlexForm
2021-04-28 13:58:08 +03:00
Matias Griese
8532db70d2
Merge remote-tracking branch 'origin/develop' into develop
2021-04-28 12:44:33 +03:00
Matias Griese
f8106a48ae
Added MediaUploadTrait::checkFileMetadata() method
2021-04-28 12:44:21 +03:00
Ricardo
2813934d21
fix for when no valid link attributes are present
2021-04-26 21:20:19 +01:00
Matias Griese
1fd2162d4f
Fixed broken exif_imagetype() twig function, composer update
2021-04-26 10:50:35 +03:00
Matias Griese
2cf7a5f281
Fixed broken numeric language codes in Flex Pages [ #2131 ]
2021-04-26 09:53:21 +03:00
Andy Miller
ed7e51480b
prepare for release
2021-04-23 12:55:28 -06:00
Matias Griese
3e91be9a4d
Added support for getting translated collection of Flex Pages using $collection->withTranslated('de')
2021-04-23 15:14:02 +03:00
Matias Griese
3e9bfad78f
Added support for user provided folder in Flex $page->copy()
2021-04-23 15:10:43 +03:00
Matias Griese
fd34fce3c1
Fixed a bug in Flex Object refresh() method
2021-04-22 13:49:11 +03:00
Matias Griese
0cf684300d
Fixed text field maxlength validation newline issue [ #3324 ]
2021-04-22 11:44:11 +03:00
Djamil Legato
fe1c808dfd
Have folder field for pages blueprints use the new folder-slug filed type
2021-04-20 15:53:51 -07:00
Andy Miller
8e8de1eeec
minor improvement in XSS invalid_protocol regex - #3298
2021-04-20 14:36:53 -06:00
Matias Griese
5efe447861
Fixed The "Grav/Common/Twig/TwigExtension" extension is not enabled when using markdown twig tag [ #3317 ]
2021-04-19 10:20:26 +03:00
Andy Miller
1a97986bd2
prepare for release
2021-04-15 12:03:32 -06:00
Matias Griese
a2bb650518
Improve JSON support for the request
2021-04-15 15:28:22 +03:00
Matias Griese
b44a1ce939
Fixed absolute path support for Windows [ #3297 ]
2021-04-14 17:04:40 +03:00
Andy Miller
ad50017235
prepare for release
2021-04-13 12:27:42 -06:00
Matias Griese
aeb2e3a715
Add back alias for moved class
2021-04-13 21:11:05 +03:00
Matias Griese
3d10282567
Merge remote-tracking branch 'security/advisory-fix-1' into develop
2021-04-13 20:51:21 +03:00
Matias Griese
9e89666a24
Composer update, rename clearcache
2021-04-13 20:41:35 +03:00
Matias Griese
953cf65223
Added some documentation #3297
2021-04-13 12:40:08 +03:00
Matias Griese
371eb76b2b
Typo #3297
2021-04-13 12:12:05 +03:00
Matias Griese
75c63704f6
Further improve defined paths #3297
2021-04-13 12:05:01 +03:00
Matias Griese
16dab2c9f1
Redirect /admin/groups to /admin/accounts/groups and blacklist it for admin controller
2021-04-12 18:38:12 +03:00
Matias Griese
7fdaf62684
Restrict filesystem Twig functions to accept only local filesystem and grav streams
2021-04-12 16:07:36 +03:00
Matias Griese
312c11b8da
Allow GRAV_WEBROOT to be devined in env, USER_DIR is always under webroot
2021-04-10 11:14:11 +03:00
Matias Griese
2ef4c28401
Added configuration options to allow PHP methods to be used in Twig functions
2021-04-09 21:31:45 +03:00
Matias Griese
27dc8ffb45
Fixed fatal error if system.pages.types is not an array [ #2984 ]( https://github.com/getgrav/grav/issues/2984 )
2021-04-09 14:45:05 +03:00
Matias Griese
c5296cd7e0
Fixed system.languages.session_store_active not having any effect [ #3269 ]
2021-04-09 13:11:08 +03:00
Matias Griese
029b408915
Fixed fatal error when using markdown links with image:// stream [ #3285 ]
2021-04-09 12:53:05 +03:00
Matias Griese
f3e4f9d311
Fixed deleting page with language code not removing the folder if it was the last language [ #3305 ]
2021-04-09 11:13:51 +03:00
Matias Griese
74a667bbef
Merge remote-tracking branch 'origin/develop' into develop
...
# Conflicts:
# CHANGELOG.md
2021-04-09 10:34:18 +03:00
Matias Griese
7f8263318e
Minor code cleanup in Utils
2021-04-09 10:33:32 +03:00
Djamil Legato
e0fc832621
Better GPM detection of unauthorized installations
2021-04-08 21:21:27 -07:00
Matias Griese
34aea14ff9
Fixed nxinx appending repeating ?url= in some redirects
2021-04-08 10:24:55 +03:00
Andy Miller
aa81350b6f
prepare for release
2021-04-06 11:16:02 -06:00
pamtbaau
e02d298ff4
Add option images.defaults.size to set default height/width ( #3272 )
...
* Add option images.defaults.size to set default height/width
- Add option to config/system.yaml
- Add option to blueprints/config/system.yaml
- Add ImageSizeTrait.php
- Add ImageSizeTrait to ImageMedium.php
- Add Unit tests
* moved width/height to rendering phase
* Add test: height/width should be of resized image.
* Added optional apsect-ratio variable
* more improvements
* Added aspectRatio and retinaScale image functions
* remove use for old trait
* reset the CLS variables after calling reset on the image
Co-authored-by: Andy Miller <rhuk@mac.com>
2021-04-05 11:21:03 -06:00
Matias Griese
67f172b741
Phpstan fixes
2021-03-31 22:11:55 +03:00