Skip to content

Commit a1d85ed

Browse files
authored
Merge pull request #35 from mambax7/master
2.35.0 RC-1
2 parents 99233ec + 874a799 commit a1d85ed

25 files changed

Lines changed: 160 additions & 337 deletions

SECURITY.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# XOOPS Security Policy
2+
3+
XOOPS takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations.
4+
This documentation provides guidelines and standard procedures regarding maintaining security with our software.
5+
6+
## Supported Versions
7+
8+
By default, only the latest version built from branch `master` (or `main`) is supported with security updates.
9+
10+
11+
## Reporting a Vulnerability
12+
13+
**Please do not report security vulnerabilities through public GitHub issues.**
14+
15+
Instead, please report (suspected) security vulnerabilities to
16+
**[security@xoops.org](mailto:security@xoops.org)**. You will receive a response from
17+
us within 48 hours. If the issue is confirmed, we will release a patch as soon
18+
as possible depending on complexity, and you'll receive a credit in our changelog.
19+
20+
Please use a descriptive subject line for your report email. After the initial
21+
reply to your report, the security team will endeavor to keep you informed of
22+
the progress being made towards a fix and announcement.
23+
24+
In addition, please include the following information along with your report:
25+
26+
* Your name and affiliation (if any).
27+
* A description of the technical details of the vulnerabilities. It is very
28+
important to let us know how we can reproduce your findings.
29+
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
30+
* Full paths of source file(s) related to the manifestation of the issue
31+
* The location of the affected source code (tag/branch/commit or direct URL)
32+
* Any special configuration required to reproduce the issue
33+
* Step-by-step instructions to reproduce the issue
34+
* Proof-of-concept or exploit code (if possible)
35+
* Impact of the issue, including how an attacker might exploit the issue
36+
37+
This information will help us triage your report more quickly.

admin/blocksadmin.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
<?php
2-
3-
declare(strict_types=1);
1+
<?php declare(strict_types=1);
42

53
/**
64
* You may not change or alter any portion of this comment or credits

assets/cumulus.swf

-33.2 KB
Binary file not shown.

assets/js/swfobject.js

Lines changed: 0 additions & 212 deletions
This file was deleted.

blocks/block.php

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@
2525

2626
defined('XOOPS_ROOT_PATH') || exit('Restricted access');
2727

28-
require_once $GLOBALS['xoops']->path('/modules/tag/include/vars.php');
29-
3028
if (!xoops_isActiveModule('tag')) {
3129
return false;
3230
}
3331

32+
require_once $GLOBALS['xoops']->path('/modules/tag/include/vars.php');
33+
34+
35+
3436
$helper = Helper::getInstance();
3537

3638
$helper->loadLanguage('blocks');
@@ -386,11 +388,13 @@ function tag_block_top_edit(array $options)
386388
$form .= ' selected ';
387389
}
388390
$form .= '>' . _MB_TAG_COUNT . "</option>\n";
389-
$form .= "<option value='t'";
390-
if ('t' === $options[2]) {
391-
$form .= ' selected ';
392-
}
393-
$form .= '>' . _MB_TAG_TIME . "</option>\n";
391+
392+
// $form .= "<option value='t'"; //@todo currently not implemented
393+
// if ('t' === $options[2]) {
394+
// $form .= ' selected ';
395+
// }
396+
// $form .= '>' . _MB_TAG_TIME . "</option>\n";
397+
394398
$form .= "</select><br>\n";
395399

396400
return $form;

class/Common/Blocksadmin.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
<?php
2-
3-
declare(strict_types=1);
1+
<?php declare(strict_types=1);
42

53
namespace XoopsModules\Tag\Common;
64

@@ -277,9 +275,9 @@ public function listBlocks(): void
277275

278276
// Actions
279277

280-
echo "<td class='$class' align='center'><a href='blocksadmin.php?op=edit&amp;bid=" . $i->getVar('bid') . "'><img src=" . $pathIcon16 . '/edit.png' . " alt='" . _EDIT . "' title='" . _EDIT . "'>
281-
</a> <a href='blocksadmin.php?op=clone&amp;bid=" . $i->getVar('bid') . "'><img src=" . $pathIcon16 . '/editcopy.png' . " alt='" . _CLONE . "' title='" . _CLONE . "'>
282-
</a>";
278+
echo "<td class='$class' align='center'>
279+
<a href='blocksadmin.php?op=edit&amp;bid=" . $i->getVar('bid') . "'><img src=" . $pathIcon16 . '/edit.png' . " alt='" . _EDIT . "' title='" . _EDIT . "'></a>
280+
<a href='blocksadmin.php?op=clone&amp;bid=" . $i->getVar('bid') . "'><img src=" . $pathIcon16 . '/editcopy.png' . " alt='" . _CLONE . "' title='" . _CLONE . "'></a>";
283281
// if ('S' !== $i->getVar('block_type') && 'M' !== $i->getVar('block_type')) {
284282
// echo "&nbsp;<a href='" . XOOPS_URL . '/modules/system/admin.php?fct=blocksadmin&amp;op=delete&amp;bid=' . $i->getVar('bid') . "'><img src=" . $pathIcon16 . '/delete.png' . " alt='" . _DELETE . "' title='" . _DELETE . "'>
285283
// </a>";
@@ -421,7 +419,7 @@ public function isBlockCloned(int $bid, string $bside, string $bweight, string $
421419
if ('' !== $clone->getVar('template')) {
422420
/** @var \XoopsTplfileHandler $tplfileHandler */
423421
$tplfileHandler = \xoops_getHandler('tplfile');
424-
$btemplate = $tplfileHandler->find($GLOBALS['xoopsConfig']['template_set'], 'block', $bid);
422+
$btemplate = $tplfileHandler->find($GLOBALS['xoopsConfig']['template_set'], 'block', (string)$bid);
425423
if (\count($btemplate) > 0) {
426424
$tplclone = $btemplate[0]->xoopsClone();
427425
$tplclone->setVar('tpl_id', 0);
@@ -603,7 +601,7 @@ public function orderBlock(
603601
$this->helper->redirect('admin/blocksadmin.php', 1, \constant('CO_' . $this->moduleDirNameUpper . '_' . 'UPDATE_SUCCESS'));
604602
}
605603

606-
public function render(?array $block = null): void
604+
public function render(?array $block = null)
607605
{
608606
\xoops_load('XoopsFormLoader');
609607
\xoops_loadLanguage('common', $this->moduleDirNameUpper);

class/Common/TestdataButtons.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
<?php
2-
3-
declare(strict_types=1);
1+
<?php declare(strict_types=1);
42

53
namespace XoopsModules\Tag\Common;
64

class/Common/VersionChecks.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
<?php
2-
3-
declare(strict_types=1);
1+
<?php declare(strict_types=1);
42

53
namespace XoopsModules\Tag\Common;
64

class/Helper.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,9 @@ class Helper extends \Xmf\Module\Helper
3030
*/
3131
public function __construct($debug = false)
3232
{
33-
$this->debug = $debug;
34-
if (null === $this->dirname) {
35-
$dirname = \basename(\dirname(__DIR__));
36-
$this->dirname = $dirname;
37-
}
38-
parent::__construct($this->dirname);
33+
$this->debug = $debug;
34+
$moduleDirName = \basename(\dirname(__DIR__));
35+
parent::__construct($moduleDirName);
3936
}
4037

4138
public static function getInstance(bool $debug = false): self

class/TagHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ public function &getByLimit($limit = Constants::UNLIMITED, $start = Constants::B
313313
$limit = $limit >= 0 ? $limit : $criteria->getLimit(); // non-zero arg passed to method overrides $criteria setting
314314
$start = $start >= 0 ? $start : $criteria->getStart(); // non-zero arg passed to method overrides $criteria setting
315315
}
316-
$sql .= " GROUP BY o.{$this->keyName}, o.tag_term, o.tag_status, l.tag_modid";
316+
$sql .= " GROUP BY o.{$this->keyName}, o.tag_term, o.tag_status";
317317

318318
$order = ('ASC' !== \mb_strtoupper($order)) ? 'DESC' : 'ASC';
319319
$sort = \mb_strtolower($sort);

0 commit comments

Comments
 (0)