1
Mamba
XOOPS Helpers 1.1.3 released

XOOPS Helpers 1.1.3 released

Download: https://github.com/XOOPS/helpers/releases 

What's Changed

  • fix(filesystem): report a NUL byte in a path, query string or variable name as a failure by @mambax7 in #26
  • docs(changelog): release 1.1.3 by @mambax7 in #27

Full Changelog: v1.1.2...v1.1.3


What Is This?

XOOPS Helpers is a standalone utility library that makes every XOOPS module safer and shorter by replacing the repetitive, error-prone boilerplate every module developer writes over and over:

// Before — scattered across every XOOPS module $escaped = htmlspecialchars($value, ENT_QUOTES | ENT_HTML5, 'UTF-8'); $url = XOOPS_URL . '/modules/' . $dirname . '/article.php?id=' . $id; $path = XOOPS_ROOT_PATH . '/modules/' . $dirname . '/language/' . $language . '/blocks.php'; $sitename = $GLOBALS['xoopsConfig']['sitename']; // After $escaped = HtmlBuilder::escape($value); $url = Url::module($dirname, 'article.php', ['id' => $id]); $path = Path::module($dirname, "language/{$language}/blocks.php"); $sitename = Config::get('system.sitename');

That first line is not just shorter — it is structurally safer. Every manual htmlspecialchars() call is a place where a future developer can introduce a stored XSS vulnerability by forgetting it once. HtmlBuilder escapes all attribute values and class names automatically — the source of the vast majority of real-world XSS. Tag content is your responsibility, intentionally: content can legitimately contain HTML (rendered markup, trusted template fragments). The safe path is explicit: pass user-supplied content through HtmlBuilder::escape(). This htmlspecialchars pattern appears 30+ times in the XOOPS Core alone — each one a place where this library makes the correct choice the easiest choice.

Requirements

  • PHP 8.2 or later with the ext-mbstring extension
  • No other runtime dependencies

Optional extensions for enhanced functionality:

  • ext-intl — locale-aware number and date formatting
  • ext-apcu — APCu caching backend
  • ext-zip — zip/unzip filesystem operations

Support XOOPS => DONATE
Use 2.7.x | Docs | Modules | Bugs

Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!