Skip to content
This repository was archived by the owner on Oct 29, 2025. It is now read-only.

Commit 4d82033

Browse files
authored
Merge pull request #237 from PerimeterX/hotfix/block-page-url-rendering
Hotfix/block-page-url-rendering - release v3.3.2
2 parents 4df2880 + e99c1bb commit 4d82033

File tree

4 files changed

+18
-12
lines changed

4 files changed

+18
-12
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [3.3.2] - 2022-04-11
9+
10+
### Fixed
11+
12+
- URLs with query params did not render properly on new block page
13+
814
## [3.3.1] - 2022-04-10
915

1016
### Fixed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[PerimeterX](http://www.perimeterx.com) Shared base for NodeJS enforcers
77
=============================================================
88

9-
> Latest stable version: [v3.3.1](https://www.npmjs.com/package/perimeterx-node-core)
9+
> Latest stable version: [v3.3.2](https://www.npmjs.com/package/perimeterx-node-core)
1010
1111
This is a shared base implementation for PerimeterX Express enforcer and future NodeJS enforcers. For a fully functioning implementation example, see the [Node-Express enforcer](https://github.com/PerimeterX/perimeterx-node-express/) implementation.
1212

lib/templates/block_template.mustache

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,24 @@
66
<meta name="description" content="px-captcha">
77
<title>Access to this page has been denied</title>
88
{{#cssRef}}
9-
<link rel="stylesheet" href="{{cssRef}}">
9+
<link rel="stylesheet" type="text/css" href="{{{cssRef}}}">
1010
{{/cssRef}}
1111
</head>
1212
<body>
13-
<script>
13+
<script>
1414
window._pxVid = '{{vid}}';
1515
window._pxUuid = '{{uuid}}';
1616
window._pxAppId = '{{appId}}';
17-
window._pxHostUrl = '{{hostUrl}}';
18-
window._pxCustomLogo = '{{customLogo}}';
19-
window._pxJsClientSrc = '{{jsClientSrc}}';
17+
window._pxHostUrl = '{{{hostUrl}}}';
18+
window._pxCustomLogo = '{{{customLogo}}}';
19+
window._pxJsClientSrc = '{{{jsClientSrc}}}';
2020
window._pxFirstPartyEnabled = {{firstPartyEnabled}};
2121
var script = document.createElement('script');
22-
script.src = '{{blockScript}}';
22+
script.src = '{{{blockScript}}}';
2323
document.head.appendChild(script);
2424
script.onerror = function () {
2525
script = document.createElement('script');
26-
script.src = '{{altBlockScript}}';
26+
script.src = '{{{altBlockScript}}}';
2727
script.onerror = window._pxDisplayErrorMessage;
2828
document.head.appendChild(script);
2929
};
@@ -37,8 +37,8 @@
3737
document.body.appendChild(div);
3838
};
3939
</script>
40-
{{#jsRef}}
41-
<script src="{{jsRef}}"></script>
42-
{{/jsRef}}
40+
{{#jsRef}}
41+
<script src="{{{jsRef}}}"></script>
42+
{{/jsRef}}
4343
</body>
4444
</html>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "perimeterx-node-core",
3-
"version": "3.3.1",
3+
"version": "3.3.2",
44
"description": "PerimeterX NodeJS shared core for various applications to monitor and block traffic according to PerimeterX risk score",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)