Skip to content

Commit

Permalink
Bump laminas/laminas-escaper from 2.15.0 to 2.16.0 (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightprince committed Feb 18, 2025
1 parent 86ea01a commit 3919b5d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 21 deletions.
21 changes: 10 additions & 11 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -622,17 +622,17 @@
},
{
"name": "laminas/laminas-escaper",
"version": "2.15.0",
"version_normalized": "2.15.0.0",
"version": "2.16.0",
"version_normalized": "2.16.0.0",
"source": {
"type": "git",
"url": "/~https://github.com/laminas/laminas-escaper.git",
"reference": "c612b0488ae486284c39885efca494c180f16351"
"reference": "9cf1f5317ca65b4fd5c6a3c2855e24a187b288c8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laminas/laminas-escaper/zipball/c612b0488ae486284c39885efca494c180f16351",
"reference": "c612b0488ae486284c39885efca494c180f16351",
"url": "https://api.github.com/repos/laminas/laminas-escaper/zipball/9cf1f5317ca65b4fd5c6a3c2855e24a187b288c8",
"reference": "9cf1f5317ca65b4fd5c6a3c2855e24a187b288c8",
"shasum": ""
},
"require": {
Expand All @@ -644,14 +644,13 @@
"zendframework/zend-escaper": "*"
},
"require-dev": {
"infection/infection": "^0.27.11",
"infection/infection": "^0.29.8",
"laminas/laminas-coding-standard": "~3.0.1",
"maglnet/composer-require-checker": "^3.8.0",
"phpunit/phpunit": "^9.6.22",
"psalm/plugin-phpunit": "^0.19.0",
"vimeo/psalm": "^5.26.1"
"phpunit/phpunit": "^10.5.45",
"psalm/plugin-phpunit": "^0.19.2",
"vimeo/psalm": "^6.6.2"
},
"time": "2024-12-17T19:39:54+00:00",
"time": "2025-02-17T12:40:19+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
Expand Down
10 changes: 5 additions & 5 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => 'fusionwowcms/fusioncms',
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => '54d948b7d99ead8ba1896a8b082b44486570db60',
'reference' => '7ff38839ab0ec261a92c432dc1b50e45ae0ba95e',
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down Expand Up @@ -85,7 +85,7 @@
'fusionwowcms/fusioncms' => array(
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => '54d948b7d99ead8ba1896a8b082b44486570db60',
'reference' => '7ff38839ab0ec261a92c432dc1b50e45ae0ba95e',
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -101,9 +101,9 @@
'dev_requirement' => false,
),
'laminas/laminas-escaper' => array(
'pretty_version' => '2.15.0',
'version' => '2.15.0.0',
'reference' => 'c612b0488ae486284c39885efca494c180f16351',
'pretty_version' => '2.16.0',
'version' => '2.16.0.0',
'reference' => '9cf1f5317ca65b4fd5c6a3c2855e24a187b288c8',
'type' => 'library',
'install_path' => __DIR__ . '/../laminas/laminas-escaper',
'aliases' => array(),
Expand Down
9 changes: 4 additions & 5 deletions vendor/laminas/laminas-escaper/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@
"ext-mbstring": "*"
},
"require-dev": {
"infection/infection": "^0.27.11",
"infection/infection": "^0.29.8",
"laminas/laminas-coding-standard": "~3.0.1",
"maglnet/composer-require-checker": "^3.8.0",
"phpunit/phpunit": "^9.6.22",
"psalm/plugin-phpunit": "^0.19.0",
"vimeo/psalm": "^5.26.1"
"phpunit/phpunit": "^10.5.45",
"psalm/plugin-phpunit": "^0.19.2",
"vimeo/psalm": "^6.6.2"
},
"autoload": {
"psr-4": {
Expand Down
8 changes: 8 additions & 0 deletions vendor/laminas/laminas-escaper/src/Escaper.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@

namespace Laminas\Escaper;

use function assert;
use function bin2hex;
use function ctype_digit;
use function hexdec;
use function htmlspecialchars;
use function in_array;
use function is_string;
use function mb_convert_encoding;
use function ord;
use function preg_match;
Expand Down Expand Up @@ -207,6 +209,8 @@ public function escapeHtmlAttr(string $string)
}

$result = preg_replace_callback('/[^a-z0-9,\.\-_]/iSu', $this->htmlAttrMatcher, $string);
assert(is_string($result));

return $this->fromUtf8($result);
}

Expand All @@ -229,6 +233,8 @@ public function escapeJs(string $string)
}

$result = preg_replace_callback('/[^a-z0-9,\._]/iSu', $this->jsMatcher, $string);
assert(is_string($result));

return $this->fromUtf8($result);
}

Expand Down Expand Up @@ -258,6 +264,8 @@ public function escapeCss(string $string)
}

$result = preg_replace_callback('/[^a-z0-9]/iSu', $this->cssMatcher, $string);
assert(is_string($result));

return $this->fromUtf8($result);
}

Expand Down

0 comments on commit 3919b5d

Please sign in to comment.