Skip to content

Commit

Permalink
Merge branch 'release/2.4.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
revig committed Nov 13, 2024
2 parents 52a687d + 0b58103 commit e48a2b4
Show file tree
Hide file tree
Showing 221 changed files with 449 additions and 252 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ To join the discussion relating to using revIgniter subscribe and review archive

### Meta

- Version: 2.4.4
- Version: 2.4.5
- Web Site: <https://revigniter.com/>
- User Guide: <https://revigniter.com/userGuide/index.html>
- Author: [Ralf Bitter](mailto:rabit@revigniter.com)
6 changes: 3 additions & 3 deletions assets/js/ASYNergy/asynergy.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/ASYNergy/asynergy.js.map

Large diffs are not rendered by default.

37 changes: 20 additions & 17 deletions system/libraries/ASYNergy.livecodescript
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,10 @@ end _rigAsynInitHelper
--| FUNCTION _rigAsynPayload
--|
--| Author: rabit
--| Version: 1.1
--| Version: 1.2
--| Created: 2022-05-26
--| Last Mod: 2023-05-21
--| Requires: rigVarPost(), _rigAsynModelValueMod()
--| Last Mod: 2024-11-11
--| Requires: rigFetchConfigItem(), rigVarPost(), _rigAsynModelValueMod()
--|
--| Summary: Return ASYNergy JSON data as array
--|
Expand All @@ -208,7 +208,7 @@ end _rigAsynInitHelper
----------------------------------------------------------------------*/

private function _rigAsynPayload
local tKey, tPayload, tWorkingPldA, tLCfunc
local tKey, tPayload, tWorkingPldA, tLCfunc, tXssFlag

# A PERCENT SIGN IN THE PAYLOAD MAY PRODUCE ZERO ("<NUL>") CHARACTERS
# WHICH ARE GENERATED WHILE URL DECODING THE PAYLOAD IN rigXssClean()
Expand All @@ -217,25 +217,28 @@ private function _rigAsynPayload
# SO PRIOR TO XSS CLEANING WE OBSCURE THE PERCENT SIGN AND
# INSERT IT AFTERWARDS AGAIN.
replace "%" with "]![" in $_POST
put rigVarPost("asynPayload", TRUE) into tPayload
# THERE IS NO NEED TO RUN THE XSS FILTER IF GLOBAL FILTERING IS SET
# TO TRUE, AS IN THIS CASE THE $_POST DATA IS ALREADY FILTERED.
put not rigFetchConfigItem("globalXssFiltering") into tXssFlag
put rigVarPost("asynPayload", tXssFlag) into tPayload
replace "]![" with "%" in tPayload

if tPayload <> FALSE then
try
put textDecode(tPayload, "ASCII") into tPayload
if sBetterJSONIncluded then
put jsonDecode(tPayload) into sPayloadA
else
put JsonImport(tPayload) into sPayloadA
end if

if sBetterJSONIncluded then
put jsonDecode(tPayload) into sPayloadA
else
put JsonImport(tPayload) into sPayloadA
end if
catch e
if sBetterJSONIncluded then
rigLogMessage "error", "ASYNergy jsonDecode error!"
else
rigLogMessage "error", "ASYNergy JsonImport error!"
end if
if sBetterJSONIncluded then
rigLogMessage "error", "ASYNergy jsonDecode error!"
else
rigLogMessage "error", "ASYNergy JsonImport error!"
end if

return FALSE
end try

Expand Down
13 changes: 11 additions & 2 deletions system/libraries/Input.livecodescript
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ end _rigSetDefaultValues
--| COMMAND _rigSanitizeGlobals
--|
--| Author: rabit
--| Version: 1.12
--| Version: 1.13
--| Created: 2009-06-17
--| Last Mod: 2022-11-06
--| Last Mod: 2024-11-11
--| Requires: Log library, _rigInputConfig, _rigSerializedPOSTtoArray, _rigCleanInputData()
--| _rigVarPostFallback(), rigLogMessage, _rigCSRFconfig, _rigCSRFverify
--|
Expand Down Expand Up @@ -240,13 +240,22 @@ private command _rigSanitizeGlobals
end if

else -- if sInputA["xRequestedWith"] <> "XMLHttpRequest"
# A PERCENT SIGN IN THE PAYLOAD MAY PRODUCE ZERO ("<NUL>") CHARACTERS
# WHICH ARE GENERATED WHILE URL DECODING THE PAYLOAD IN rigXssClean()
# IF ONE OF THE CHARACTERS AFTER "%" IS NOT A HEXADECIMAL DIGIT.
# THIS WOULD LEAD TO AN ERROR IN JsonImport.
# SO PRIOR TO XSS CLEANING WE OBSCURE THE PERCENT SIGN AND
# INSERT IT AFTERWARDS AGAIN.
replace "%" with "]![" in $_POST_RAW
# JSON SENT USING post, INCLUDES ESCAPED QUOTATION MARKS
# SHOULD WE FILTER THE DATA?
if sInputA["useXssClean"] is TRUE then
put rigXssClean(urlDecode($_POST_RAW)) into $_POST
else
put urlDecode($_POST_RAW) into $_POST
end if

replace "]![" with "%" in $_POST
end if -- if sInputA["xRequestedWith"] <> "XMLHttpRequest"

end if -- if tPOSTrawVariableValue is empty
Expand Down
2 changes: 1 addition & 1 deletion system/revigniter/RevIgniter.lc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ end if


# RI VERSION
constant RIVERSION = "2.4.4"
constant RIVERSION = "2.4.5"
constant RISTATE = "final"

# VERSION GETTER
Expand Down
16 changes: 14 additions & 2 deletions userGuide/changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down Expand Up @@ -94,6 +94,7 @@ <h1>Change Log</h1>


<ul>
<li><a href="#version245">Version 2.4.5</a></li>
<li><a href="#version244">Version 2.4.4</a></li>
<li><a href="#version243">Version 2.4.3</a></li>
<li><a href="#version242">Version 2.4.2</a></li>
Expand Down Expand Up @@ -235,8 +236,19 @@ <h1>Change Log</h1>
</ul>


<h2><a id="version245">&nbsp;</a>Version 2.4.5</h2>
<p>Release Date: 2024-11-13</p>

<ul>
<li><strong>Fixed:</strong> Percentage signs in JSON data are now preserved and no longer produce zero (“&lt;NUL&gt;”) characters while filtering the data in the <dfn>_rigSanitizeGlobals</dfn> function of the Input library.</li>
<li><strong>Changed:</strong> The <dfn>_rigAsynPayload()</dfn> function of the ASYNergy library now refrains from executing the XSS filter if the global filtering is set to true.</li>
<li><strong>Changed:</strong> The stylesheets of the tutorial examples have been revised.</li>
<li><strong>Added:</strong> the latest version of the ASYNergy framework.</li>
</ul>


<h2><a id="version244">&nbsp;</a>Version 2.4.4</h2>
<p>Release Date: 2024-10-013</p>
<p>Release Date: 2024-10-13</p>

<ul>
<li><strong>Fixed:</strong> the mess in the User Guide caused by unintentional execution of 'find and replace' in preparation of the previous version.</li>
Expand Down
2 changes: 1 addition & 1 deletion userGuide/database/active_record.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/database/caching.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/database/configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/database/connecting.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/database/examples.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/database/fields.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/database/helpers.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/database/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/database/queries.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/database/results.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/database/table_data.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/database/transactions.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/docStyle/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/general/autoloader.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/general/caching.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/general/cli.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/general/common_handlers.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/general/controllers.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/general/core_libraries.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/general/creating_libraries.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/general/credits.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/general/errors.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/general/extensions.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/general/helpers.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/general/hooks.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/general/libraries.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
2 changes: 1 addition & 1 deletion userGuide/general/managing_apps.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.4</a>
<a class="navbar-brand" href="#">revIgniter User Guide Version 2.4.5</a>
</div>

<div class="collapse navbar-collapse">
Expand Down
Loading

0 comments on commit e48a2b4

Please sign in to comment.