Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dev #9

Merged
merged 113 commits into from
Jul 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
2b7a904
[3.x] Update download URL of composer for appveyor (#33508)
richard67 May 3, 2021
6639c07
Action logs fix for media manager upload urls (#31836)
wilsonge May 7, 2021
08f0a31
s/hypens/hyphens (#33850)
PhilETaylor May 14, 2021
2a74fa6
Fix composer github errors (#33869)
HLeithner May 14, 2021
0c0becc
Refacor bind method in table class for objects and add unit test for …
richard67 May 15, 2021
f1f10a2
stop onchange handler being called twice when changing calendar field…
GeraintEdwards May 15, 2021
37e1ac3
Improve indexing performance of Smart Search (#33720)
Hackwar May 17, 2021
8dcc726
[3.x] Add joomla-backports/phpmailer to CMS repo (#33772)
SniperSister May 18, 2021
3f1825e
Smart Search: Fix indexing for Postgres 2. attempt (#31809)
Hackwar May 18, 2021
241925d
Fix PHP notice about undefined variable article (#33941)
richard67 May 18, 2021
618e2c3
Fix folder deletion in script.php (#33868)
richard67 May 18, 2021
4656add
[3.10] Make sure we follow the inline php cs rules for template files…
zero-24 May 18, 2021
d4ff5dc
[3.9][SECURITY] Block usage of FLoC by default (#33212)
Hackwar May 18, 2021
09e0ff8
Fix fatal strpos error with PHP 8 (#33113)
ReLater May 18, 2021
da37c73
Prepare Joomla! 3.9.27 Release Candidate
HLeithner May 19, 2021
4d1fee7
Reset to dev
HLeithner May 19, 2021
d43f973
Added p-tag to FLoC information block (#34058)
Kostelano May 21, 2021
4cf3b7c
Prepease 3.9.27 release
HLeithner May 24, 2021
f2b6d58
Reset to dev
HLeithner May 24, 2021
6a25a6a
Merge branch 'staging' of github.com:joomla/joomla-cms into staging
HLeithner May 25, 2021
5b54c98
Merge branch 'staging' into 3.10-dev
HLeithner May 25, 2021
f6946c5
[4.0] Post Installation: Fix Messages Notification Count (#33344)
YatharthVyas Jun 5, 2021
4495453
Composer update joomla/utilities (#34380)
richard67 Jun 5, 2021
b59d125
[4.0] Expand all (#34416)
brianteeman Jun 5, 2021
31377dc
[4.0] privacy request sidebar (#34415)
brianteeman Jun 5, 2021
7b23043
[4.0] plg installer non-existent string (#34413)
brianteeman Jun 6, 2021
e583f43
[4.0] remove com_joomlaupdate scss (#34407)
brianteeman Jun 6, 2021
bf48c91
[4.0] missing string (#34411)
brianteeman Jun 6, 2021
46f64c5
[4.0] sysinfo th (#34406)
brianteeman Jun 6, 2021
b3cd91b
[4.0] remove com_finder scss (#34403)
brianteeman Jun 6, 2021
001830c
[4.0] Fix drag and drop re-ordering for grouped items (#34375)
joomdonation Jun 6, 2021
f88caa8
[4.0] capitalisation of styles (#34399)
brianteeman Jun 6, 2021
81db97d
[4.0] Dont try to translate missing label (#34412)
brianteeman Jun 6, 2021
184cc04
[4.0] Fix query after prepared statements (#34422)
chmst Jun 6, 2021
dac0334
[4.0] Home icon on dashboard (#34429)
brianteeman Jun 6, 2021
ad818be
[4.0] Messaging : options missing string (#34420)
brianteeman Jun 6, 2021
2cb3311
[4.0] codemirror update (#34423)
brianteeman Jun 6, 2021
549a8df
[4.0] Reinitialise the installer's cached extensions table's properti…
richard67 Jun 6, 2021
6d26d3d
[4.0] atum Remove underline from badges (#34142)
himanshu007-creator Jun 6, 2021
db53910
[4.0] options sidebar (#34310)
brianteeman Jun 6, 2021
eaa0dfd
[4] hits - Move rendering from outside of the model (#34320)
PhilETaylor Jun 6, 2021
c3b8ee1
[4.0] Fix radio buttons in batch processing (#33900)
Kostelano Jun 7, 2021
d7f26ec
[4.0] admin module descriptions (#34441)
brianteeman Jun 7, 2021
085ad62
[4.0] com contact unused fields (#34418)
brianteeman Jun 7, 2021
e62323f
[4.0] add rel attribute in joomla.ini (#34434)
tecpromotion Jun 7, 2021
4dafe44
[4.0] Improving the display of an arrow in language string in "plg_sy…
max123kl Jun 7, 2021
ae42630
[4.0] s/encription/encryption (#34458)
brianteeman Jun 7, 2021
90d49ae
[4.0] com_admin typos (#34454)
brianteeman Jun 7, 2021
8d3ae63
[4.0] s/proccess/process (#34457)
brianteeman Jun 7, 2021
5fdba4e
[4.0] s/minumum/minimum (#34459)
brianteeman Jun 7, 2021
a8da669
[4.0] quickiocn helper (#34455)
brianteeman Jun 7, 2021
905627c
Fix history GET (#34447)
alikon Jun 8, 2021
317f826
[4.0] help sidebar onhover (#34461)
brianteeman Jun 8, 2021
50a5f46
[4.0] Cleanup Blog Sample Data Plugin (#34462)
joomdonation Jun 9, 2021
82c592f
[4.0] Multilingual sample data cleanup (#34460)
joomdonation Jun 9, 2021
0f00aab
Replace double quote with single quote (#34452)
Jun 9, 2021
5421c69
[4.0] Smart Search when plugin is disabled (#34449)
brianteeman Jun 9, 2021
09f6337
[4.0] Active sidebar (menu collapsing) (#34465)
brianteeman Jun 9, 2021
6226af3
Added module ID to navbar elements (#34466)
RickR2H Jun 9, 2021
44934f7
[4.0] com_joomlaupdate typos (#34456)
brianteeman Jun 9, 2021
125b2d7
Merge branch '4.0-dev' of github.com:joomla/joomla-cms into 4.1-dev
bembelimen Jun 10, 2021
e0ab90b
removed role="navigation" (#34483)
RickR2H Jun 10, 2021
9459457
[4.0] legend css (#34408)
brianteeman Jun 10, 2021
496e6be
[4.0] double translate extension name (#34439)
brianteeman Jun 10, 2021
6ff0fc7
Fix the mobile menu wrongly expanding the logo (#33877)
dgrammatiko Jun 10, 2021
1a71b1d
[4.0] content_history scope (#34485)
brianteeman Jun 10, 2021
c544fee
Change hits type attribute to text. (#34486)
Jun 11, 2021
ce01210
[4.0] element-invisible (#34490)
brianteeman Jun 11, 2021
ba805f3
[4.0] sr-only (#34489)
brianteeman Jun 11, 2021
050add0
[4.0] Fix sorted by: table caption (#34487)
rjharishabh Jun 11, 2021
9b605ca
Remove arrows/spinners from input type number when readonly (#34493)
Jun 12, 2021
436003c
[4.0] Sanitization for code using insertAdjacentHTML (#34481)
dgrammatiko Jun 12, 2021
3836821
[4.0] Sanitize modals (#34480)
dgrammatiko Jun 12, 2021
9bd9e52
[4.0] Subform fixes (#31567)
Denitz Jun 12, 2021
34dc7ad
Update files and folders deletion on updates to 4.0 RC 2 (#34495)
richard67 Jun 12, 2021
2accef6
Change order of fields and add description (#34469)
drmenzelit Jun 12, 2021
2d36353
[4.0] Fix searchtool JS error (#34482)
joomdonation Jun 12, 2021
9f50586
[4.0] alphabetical sorting in com_joomlaupdate (#34435)
tecpromotion Jun 13, 2021
451dd59
[4][webservices] refactor the URLs for contenthistory (#34488)
alikon Jun 13, 2021
da4ced6
[4.0] JS files are full of XSS (#34472)
dgrammatiko Jun 13, 2021
d745f53
Merge commit 'f1f10a2' into 4.0-dev
wilsonge Jun 13, 2021
cbf1635
Merge branch '4.0-dev' of github.com:joomla/joomla-cms into 4.0-dev
wilsonge Jun 13, 2021
16ec1a1
Fix media upload link for j4 media manager
wilsonge Jun 13, 2021
6274e5f
Merge commit 'f2b6d58' into 4.0-dev
wilsonge Jun 14, 2021
56f8ce4
Merge commit '5b54c98' into 4.0-dev
wilsonge Jun 14, 2021
dd606d1
Port in https://github.com/joomla/joomla-cms/pull/32937
wilsonge Jun 14, 2021
b4fdaac
Remove 3.9.27 update SQL scripts (#34505)
richard67 Jun 14, 2021
4cceb90
Extra fixes for https://github.com/joomla/joomla-cms/commit/dd606d180…
wilsonge Jun 14, 2021
cc20716
[4.0] FLoC options (#34507)
brianteeman Jun 14, 2021
d14bcf1
[4.0] Newsfeed hits field (#34506)
brianteeman Jun 14, 2021
5227ebe
[4.0] Merge commit 'f1f10a2' (#34508)
brianteeman Jun 14, 2021
8de3eb7
Remove media helper from files and folder deletion in script.php (#34…
richard67 Jun 14, 2021
6f1f59e
[4.0] Fix form validation error (#34513)
joomdonation Jun 14, 2021
11f37b6
Add top margin (#34517)
Jun 14, 2021
1f94006
[4.0] Smart Search: Fix inserting tokens to DB (#34503)
Hackwar Jun 14, 2021
286e513
Fix subform: add row at correct position (#34402)
Fedik Jun 14, 2021
48187e8
[4.0] Allow form elements in a subform template (sanitisation) (#34514)
dgrammatiko Jun 15, 2021
47cb349
[4.0] Fix com_joomlaupdate js error (#34516)
joomdonation Jun 15, 2021
b262fb3
[4.0] Remove unused file (#33864)
brianteeman Jun 15, 2021
12a74a3
Update deleted files in script.php to changes from PR #33864 (#34521)
richard67 Jun 15, 2021
5a00031
Tag 4.0.0 RC2
wilsonge Jun 15, 2021
09e0d74
Bump to RC3 Dev
wilsonge Jun 15, 2021
1e2ffa7
[4.0] useractions spelling (#34526)
brianteeman Jun 15, 2021
a175fc6
[4.0] Use unset filter to unset created_by data if needed (#34303)
joomdonation Jun 15, 2021
9812f17
Make a list for flags in mail-templates (#34530)
chmst Jun 16, 2021
4f85ef5
[4.0] Convert inline to file and remove jQuery (#34478)
dgrammatiko Jun 17, 2021
b40e78b
[4.0] Learn more (#34550)
brianteeman Jun 17, 2021
e2a44b7
[4.0] cassiopeia (#34552)
brianteeman Jun 17, 2021
8b4bbfe
Reorder featured in sort table by (#34535)
Jun 18, 2021
9b8981f
Update drone key for gsoc21_accessibility
HLeithner Jun 20, 2021
4000aed
[4.0] Workflow Transitions sort (#34575)
brianteeman Jun 20, 2021
7152030
Merge branch '4.0-dev' of github.com:joomla/joomla-cms into 4.1-dev
bembelimen Jun 21, 2021
2c986c0
Merge branch '4.1-dev' of github.com:joomla/joomla-cms into 4.1-dev-a…
bembelimen Jun 22, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,6 @@ steps:

---
kind: signature
hmac: 71729a12ae3556e03f924ac95c8a5cd14bb6a3c2d20ef6768fdd1e853397fd22
hmac: d3d7b9b57f2aa7d6056ec0c37333fbaf81f42452fd7c5ffecdc9c6a9b130c120

...
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,13 @@ public static function getHumanReadableLogMessage($log, $generateLinks = true)
* @param string $contentType
* @param integer $id
* @param string $urlVar
* @param JObject $object
*
* @return string Link to the content item
*
* @since 3.9.0
*/
public static function getContentTypeLink($component, $contentType, $id, $urlVar = 'id')
public static function getContentTypeLink($component, $contentType, $id, $urlVar = 'id', $object = null)
{
// Try to find the component helper.
$eName = str_replace('com_', '', $component);
Expand All @@ -257,7 +258,7 @@ public static function getContentTypeLink($component, $contentType, $id, $urlVar

if (class_exists($cName) && is_callable(array($cName, 'getContentTypeLink')))
{
return $cName::getContentTypeLink($contentType, $id);
return $cName::getContentTypeLink($contentType, $id, $object);
}
}

Expand Down
24 changes: 21 additions & 3 deletions administrator/components/com_admin/script.php
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ protected function updateManifestCaches()
* Delete files that should not exist
*
* @param bool $dryRun If set to true, will not actually delete files, but just report their status for use in CLI
* @param bool $suppressOutput Set to true to supress echoing any errors, and just return the $status array
* @param bool $suppressOutput Set to true to suppress echoing any errors, and just return the $status array
*
* @return array
*/
Expand Down Expand Up @@ -1460,7 +1460,6 @@ public function deleteUnexistingFiles($dryRun = false, $suppressOutput = false)
'/administrator/components/com_media/controllers/file.json.php',
'/administrator/components/com_media/controllers/file.php',
'/administrator/components/com_media/controllers/folder.php',
'/administrator/components/com_media/helpers/media.php',
'/administrator/components/com_media/layouts/toolbar/deletemedia.php',
'/administrator/components/com_media/layouts/toolbar/newfolder.php',
'/administrator/components/com_media/layouts/toolbar/uploadmedia.php',
Expand Down Expand Up @@ -3874,9 +3873,11 @@ public function deleteUnexistingFiles($dryRun = false, $suppressOutput = false)
'/libraries/vendor/leafo/lessphp/lessify',
'/libraries/vendor/leafo/lessphp/lessify.inc.php',
'/libraries/vendor/leafo/lessphp/plessc',
'/libraries/vendor/paragonie/random_compat/LICENSE',
'/libraries/vendor/paragonie/random_compat/lib/byte_safe_strings.php',
'/libraries/vendor/paragonie/random_compat/lib/cast_to_int.php',
'/libraries/vendor/paragonie/random_compat/lib/error_polyfill.php',
'/libraries/vendor/paragonie/random_compat/lib/random.php',
'/libraries/vendor/paragonie/random_compat/lib/random_bytes_com_dotnet.php',
'/libraries/vendor/paragonie/random_compat/lib/random_bytes_dev_urandom.php',
'/libraries/vendor/paragonie/random_compat/lib/random_bytes_libsodium.php',
Expand Down Expand Up @@ -5423,6 +5424,8 @@ public function deleteUnexistingFiles($dryRun = false, $suppressOutput = false)
'/libraries/vendor/ozdemirburak/iris/src/Traits/HsTrait.php',
'/libraries/vendor/ozdemirburak/iris/src/Traits/HslTrait.php',
'/libraries/vendor/ozdemirburak/iris/src/Traits/RgbTrait.php',
'/libraries/vendor/paragonie/random_compat/dist/random_compat.phar.pubkey',
'/libraries/vendor/paragonie/random_compat/dist/random_compat.phar.pubkey.asc',
'/libraries/vendor/psr/http-factory/.pullapprove.yml',
'/libraries/vendor/spomky-labs/cbor-php/.php_cs.dist',
'/libraries/vendor/spomky-labs/cbor-php/CODE_OF_CONDUCT.md',
Expand Down Expand Up @@ -5843,6 +5846,19 @@ public function deleteUnexistingFiles($dryRun = false, $suppressOutput = false)
'/templates/cassiopeia/scss/tools/mixins/_margin.scss',
'/templates/cassiopeia/scss/tools/mixins/_visually-hidden.scss',
'/templates/system/js/error-locales.js',
// 4.0 from RC 1 to RC 2
'/administrator/components/com_fields/tmpl/field/modal.php',
'/administrator/templates/atum/scss/pages/_com_admin.scss',
'/administrator/templates/atum/scss/pages/_com_finder.scss',
'/administrator/templates/atum/scss/pages/_com_joomlaupdate.scss',
'/libraries/src/Error/JsonApi/InstallLanguageExceptionHandler.php',
'/libraries/src/MVC/Controller/Exception/InstallLanguage.php',
'/media/com_fields/js/admin-field-edit-modal-es5.js',
'/media/com_fields/js/admin-field-edit-modal-es5.min.js',
'/media/com_fields/js/admin-field-edit-modal-es5.min.js.gz',
'/media/com_fields/js/admin-field-edit-modal.js',
'/media/com_fields/js/admin-field-edit-modal.min.js',
'/media/com_fields/js/admin-field-edit-modal.min.js.gz',
);

$folders = array(
Expand Down Expand Up @@ -6167,6 +6183,7 @@ public function deleteUnexistingFiles($dryRun = false, $suppressOutput = false)
'/libraries/vendor/simplepie/simplepie',
'/libraries/vendor/simplepie',
'/libraries/vendor/phpmailer/phpmailer/extras',
'/libraries/vendor/paragonie/random_compat/lib',
'/libraries/vendor/leafo/lessphp',
'/libraries/vendor/leafo',
'/libraries/vendor/joomla/session/Joomla/Session/Storage',
Expand Down Expand Up @@ -6797,7 +6814,6 @@ public function deleteUnexistingFiles($dryRun = false, $suppressOutput = false)
'/administrator/components/com_media/views/images',
'/administrator/components/com_media/views',
'/administrator/components/com_media/models',
'/administrator/components/com_media/helpers',
'/administrator/components/com_media/controllers',
'/administrator/components/com_login/views/login/tmpl',
'/administrator/components/com_login/views/login',
Expand Down Expand Up @@ -7051,6 +7067,8 @@ public function deleteUnexistingFiles($dryRun = false, $suppressOutput = false)
'/media/vendor/punycode/js',
'/media/templates/atum/js',
'/media/templates/atum',
'/libraries/vendor/paragonie/random_compat/dist',
'/libraries/vendor/paragonie/random_compat',
'/libraries/vendor/ozdemirburak/iris/src/Traits',
'/libraries/vendor/ozdemirburak/iris/src/Helpers',
'/libraries/vendor/ozdemirburak/iris/src/Exceptions',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--
-- Step 1: Convert all tables to utf8mb4 chracter set with utf8mb4_unicode_ci collation
-- Step 1: Convert all tables to utf8mb4 character set with utf8mb4_unicode_ci collation
-- except of #__finder_xxx tables, those are handled with 4.0.0-2018-07-29.sql at update.
--

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
--

--
-- Step 1: Convert all tables to utf8mb4 chracter set with utf8mb4_unicode_ci collation.
-- Step 1: Convert all tables to utf8mb4 character set with utf8mb4_unicode_ci collation.
--

ALTER TABLE `#__core_log_searches` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- after 4.0.0 RC1
UPDATE `#__template_styles`
SET `title` = 'Atum - Default'
WHERE `title` = 'atum - Default';

UPDATE `#__template_styles`
SET `title` = 'Cassiopeia - Default'
WHERE `title` = 'cassiopeia - Default';
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- after 4.0.0 RC1
UPDATE "#__template_styles"
SET "title" = 'Atum - Default'
WHERE "title" = 'atum - Default';

UPDATE "#__template_styles"
SET "title" = 'Cassiopeia - Default'
WHERE "title" = 'cassiopeia - Default';
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,28 @@
*/
class DisplayController extends BaseController
{
/**
* View method
*
* @param boolean $cachable If true, the view output will be cached
* @param array $urlparams An array of safe URL parameters and their variable types, for valid values see {@link \JFilterInput::clean()}.
*
* @return static Supports chaining.
*
* @since 3.9
*/
public function display($cachable = false, $urlparams = array())
{
$viewName = $this->input->get('view', $this->default_view);
$format = $this->input->get('format', 'html');

// Check CSRF token for sysinfo export views
if ($viewName === 'sysinfo' && ($format === 'text' || $format === 'json'))
{
// Check for request forgeries.
$this->checkToken('GET');
}

return parent::display($cachable, $urlparams);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;
use Joomla\CMS\Toolbar\ToolbarHelper;
use Joomla\Component\Admin\Administrator\Model\SysinfoModel;

Expand Down Expand Up @@ -110,12 +111,12 @@ protected function addToolbar(): void
{
ToolbarHelper::title(Text::_('COM_ADMIN_SYSTEM_INFORMATION'), 'info-circle systeminfo');
ToolbarHelper::link(
Route::_('index.php?option=com_admin&view=sysinfo&format=text'),
Route::_('index.php?option=com_admin&view=sysinfo&format=text&' . Session::getFormToken() . '=1'),
'COM_ADMIN_DOWNLOAD_SYSTEM_INFORMATION_TEXT',
'download'
);
ToolbarHelper::link(
Route::_('index.php?option=com_admin&view=sysinfo&format=json'),
Route::_('index.php?option=com_admin&view=sysinfo&format=json&' . Session::getFormToken() . '=1'),
'COM_ADMIN_DOWNLOAD_SYSTEM_INFORMATION_JSON',
'download'
);
Expand Down
8 changes: 4 additions & 4 deletions administrator/components/com_admin/tmpl/help/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
</button>
<div class="sidebar-nav" id="help-index">
<ul class="nav flex-column">
<li><?php echo HTMLHelper::_('link', Help::createUrl('JHELP_START_HERE'), Text::_('COM_ADMIN_START_HERE'), ['target' => 'helpFrame']); ?></li>
<li><?php echo HTMLHelper::_('link', 'https://www.gnu.org/licenses/gpl-2.0.html', Text::_('COM_ADMIN_LICENSE'), ['target' => 'helpFrame']); ?></li>
<li><?php echo HTMLHelper::_('link', Help::createUrl('JHELP_GLOSSARY'), Text::_('COM_ADMIN_GLOSSARY'), ['target' => 'helpFrame']); ?></li>
<li class="item"><?php echo HTMLHelper::_('link', Help::createUrl('JHELP_START_HERE'), Text::_('COM_ADMIN_START_HERE'), ['target' => 'helpFrame']); ?></li>
<li class="item"><?php echo HTMLHelper::_('link', 'https://www.gnu.org/licenses/gpl-2.0.html', Text::_('COM_ADMIN_LICENSE'), ['target' => 'helpFrame']); ?></li>
<li class="item"><?php echo HTMLHelper::_('link', Help::createUrl('JHELP_GLOSSARY'), Text::_('COM_ADMIN_GLOSSARY'), ['target' => 'helpFrame']); ?></li>
<li class="divider"></li>
<li class="nav-header"><?php echo Text::_('COM_ADMIN_ALPHABETICAL_INDEX'); ?></li>
<?php foreach ($this->toc as $k => $v) : ?>
<li>
<li class="item">
<?php $url = Help::createUrl('JHELP_' . strtoupper($k)); ?>
<?php echo HTMLHelper::_('link', $url, $v, ['target' => 'helpFrame']); ?>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ protected function getInput()
'bodyHeight' => 70,
'modalWidth' => 80,
'footer' => '<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">'
. Text::_("JLIB_HTML_BEHAVIOR_CLOSE") . '</button>',
. Text::_('JLIB_HTML_BEHAVIOR_CLOSE') . '</button>',
)
);

Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_banners/forms/banner.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<field
name="id"
type="number"
type="text"
label="JGLOBAL_FIELD_ID_LABEL"
default="0"
readonly="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ public function display($cachable = false, $urlparams = array())
// Get and render the view.
if ($view = $this->getView($vName, 'raw'))
{
// Check for request forgeries.
$this->checkToken('GET');

// Get the model for the view.
/** @var \Joomla\Component\Banners\Administrator\Model\TracksModel $model */
$model = $this->getModel($vName);
Expand Down
33 changes: 6 additions & 27 deletions administrator/components/com_banners/src/Model/BannerModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,12 @@ public function getForm($data = array(), $loadData = true)
$form->setFieldAttribute('sticky', 'filter', 'unset');
}

// Don't allow to change the created_by user if not allowed to access com_users.
if (!Factory::getUser()->authorise('core.manage', 'com_users'))
{
$form->setFieldAttribute('created_by', 'filter', 'unset');
}

return $form;
}

Expand Down Expand Up @@ -460,31 +466,4 @@ private function canCreateCategory()
{
return Factory::getUser()->authorise('core.create', 'com_banners');
}

/**
* Method to validate the form data.
*
* @param Form $form The form to validate against.
* @param array $data The data to validate.
* @param string $group The name of the field group to validate.
*
* @return array|boolean Array of filtered data if valid, false otherwise.
*
* @see JFormRule
* @see JFilterInput
* @since 3.9.25
*/
public function validate($form, $data, $group = null)
{
// Don't allow to change the users if not allowed to access com_users.
if (!Factory::getUser()->authorise('core.manage', 'com_users'))
{
if (isset($data['created_by']))
{
unset($data['created_by']);
}
}

return parent::validate($form, $data, $group);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Router\Route;
use \Joomla\CMS\Session\Session;

/** @var \Joomla\Component\Banners\Administrator\View\Download\HtmlView $this */

Expand All @@ -22,7 +23,7 @@
class="form-horizontal form-validate"
id="download-form"
name="adminForm"
action="<?php echo Route::_('index.php?option=com_banners&task=tracks.display&format=raw'); ?>"
action="<?php echo Route::_('index.php?option=com_banners&task=tracks.display&format=raw&' . Session::getFormToken() . '=1'); ?>"
method="post">

<?php foreach ($this->form->getFieldset() as $field) : ?>
Expand Down
4 changes: 2 additions & 2 deletions administrator/components/com_categories/forms/category.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<field
name="id"
type="number"
type="text"
label="JGLOBAL_FIELD_ID_LABEL"
default="0"
class="readonly"
Expand All @@ -12,7 +12,7 @@

<field
name="hits"
type="number"
type="text"
label="JGLOBAL_HITS"
default="0"
class="readonly"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,12 @@ public function getForm($data = array(), $loadData = true)
$form->setFieldAttribute('published', 'filter', 'unset');
}

// Don't allow to change the created_user_id user if not allowed to access com_users.
if (!Factory::getUser()->authorise('core.manage', 'com_users'))
{
$form->setFieldAttribute('created_user_id', 'filter', 'unset');
}

return $form;
}

Expand Down Expand Up @@ -368,15 +374,6 @@ protected function loadFormData()
*/
public function validate($form, $data, $group = null)
{
// Don't allow to change the users if not allowed to access com_users.
if (!Factory::getUser()->authorise('core.manage', 'com_users'))
{
if (isset($data['created_user_id']))
{
unset($data['created_user_id']);
}
}

if (!Factory::getUser()->authorise('core.admin', $data['extension']))
{
if (isset($data['rules']))
Expand Down
13 changes: 13 additions & 0 deletions administrator/components/com_config/forms/application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1110,6 +1110,19 @@

</field>

<field
name="block_floc"
type="radio"
label="COM_CONFIG_FIELD_FLOC_BLOCKER_LABEL"
description="COM_CONFIG_FIELD_FLOC_BLOCKER_DESC"
layout="joomla.form.field.radio.switcher"
default="1"
filter="integer"
>
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>

</fieldset>

<fieldset
Expand Down
Loading