Search found 21 matches

by Ralf Bitter
Tue Dec 06, 2022 9:32 am
Forum: CGIs and the Server
Topic: Revigniter V2 sanitizing issue
Replies: 27
Views: 15371

Re: Revigniter V2 sanitizing issue

Hi istech,

thanks for your feedback, I am glad it works now.
My question was not related to base64, I was curious about why you send an application/json Content-Type header.
by Ralf Bitter
Sun Dec 04, 2022 3:37 pm
Forum: CGIs and the Server
Topic: Revigniter V2 sanitizing issue
Replies: 27
Views: 15371

Re: Revigniter V2 sanitizing issue

Hi istech, considering your code (encoding JSON, using libURLFormData(), sending an application/json Content-Type header), $_POST[“myKey"] is empty, that's true, but $_POST is not empty. At least this is what I am noticing. The code to get the data should read: put base64Decode($_POST) into tJSON So...
by Ralf Bitter
Sat Dec 03, 2022 8:06 pm
Forum: CGIs and the Server
Topic: Revigniter V2 sanitizing issue
Replies: 27
Views: 15371

Re: Revigniter V2 sanitizing issue

Hi istech, if I understood you correctly, you are sending base64 encoded JSON data. In this case do not use libURLFormData() and do not send an application/lc.array nor an application/json Content-Type header. On the server side use: put base64Decode($_POST_RAW) into tJSON If you like to use libURLF...
by Ralf Bitter
Fri Sep 02, 2022 6:05 pm
Forum: CGIs and the Server
Topic: How to get the headers of the requesting client?
Replies: 5
Views: 4930

Re: How to get the headers of the requesting client?

Check out the array variable "$_SERVER" in the dictionary.
by Ralf Bitter
Wed Dec 22, 2021 9:44 am
Forum: CGIs and the Server
Topic: Revigniter V2 sanitizing issue
Replies: 27
Views: 15371

Re: Revigniter V2 sanitizing issue

Hi istech,

the new release (version 2.3.3) can be downloaded here:

https://revigniter.com/

or here:

https://github.com/revig/revigniter/
by Ralf Bitter
Sun Dec 19, 2021 2:54 pm
Forum: CGIs and the Server
Topic: Revigniter V2 sanitizing issue
Replies: 27
Views: 15371

Re: Revigniter V2 sanitizing issue

Hi istech, sorry for the late reply. Yes, using libURLFormData() is currently a requirement for posting LC arrays to revigniter. But I have been messing around with the code of the Input library and can tell this will change with the next release. This means that one will be able to post LC arrays w...
by Ralf Bitter
Thu Dec 09, 2021 10:25 pm
Forum: CGIs and the Server
Topic: Revigniter V2 sanitizing issue
Replies: 27
Views: 15371

Re: Revigniter V2 sanitizing issue

Hi istech, I don’t think it has to do with your installation. There is something else you should pay attention to, and that is the usage of libURLFormData when posting arrayencoded arrays. Here is what I do: put JSONToArray(tJSON) into tJsonA set the httpHeaders to "Content-Type: application/lc.arra...
by Ralf Bitter
Wed Dec 01, 2021 12:46 am
Forum: CGIs and the Server
Topic: Revigniter V2 sanitizing issue
Replies: 27
Views: 15371

Re: Revigniter V2 sanitizing issue

Hi istech, not that there is any misunderstanding, I thought you post the JSON data base64 encoded. So, no need to set a HTTP header. But previously mentioned restrictions do not apply if you post unencoded JSON data using the appropriate HTTP header. And yes, I did post from the LC IDE. How do you ...
by Ralf Bitter
Tue Nov 30, 2021 7:37 pm
Forum: CGIs and the Server
Topic: Revigniter V2 sanitizing issue
Replies: 27
Views: 15371

Re: Revigniter V2 sanitizing issue

Hi istech, have tested your sample data in a POST action. There was no problem neither by sending the base64 encoded data nor by sending the base64 decoded (JSON) data, in this case using a "Content-Type: application/json" header. To verify that everything works as expected, on the server side I con...
by Ralf Bitter
Mon Nov 29, 2021 5:30 pm
Forum: CGIs and the Server
Topic: Revigniter V2 sanitizing issue
Replies: 27
Views: 15371

Re: Revigniter V2 sanitizing issue

Hi istech, you can POST JSON base64 encoded, you can POST JSON unencoded if you set the httpHeaders to "Content-Type: application/json” or you can POST JSON in a base64 encoded arrayencoded LC array if you set the httpHeaders to "Content-Type: application/lc.array” or if you are dealing with a compr...
by Ralf Bitter
Sun Nov 28, 2021 3:20 pm
Forum: CGIs and the Server
Topic: Revigniter V2 sanitizing issue
Replies: 27
Views: 15371

Re: Revigniter V2 sanitizing issue

Hi istech,

could you provide a sample array so I can investigate
where the problem is?
by Ralf Bitter
Sat Nov 27, 2021 1:57 pm
Forum: CGIs and the Server
Topic: Revigniter V2 sanitizing issue
Replies: 27
Views: 15371

Re: Revigniter V2 sanitizing issue

Hi istech, I am in a hurry right now, but will deal with it later. There seems to be a misunderstanding on my side. Thought your POST array keys are base64 encoded. Now it turns out your POST array is encoded. I assume you followed the instructions regarding dealing with arrays in POST data in chapt...
by Ralf Bitter
Fri Nov 26, 2021 12:31 am
Forum: CGIs and the Server
Topic: Revigniter V2 sanitizing issue
Replies: 27
Views: 15371

Re: Revigniter V2 sanitizing issue

Hi istech,

this setting applies only to URLs and has no effect
on POST data.
If you absolutely need equal signs in POST keys you
may consider to add an equal sign to the regular
expression in function _rigCleanInputKeys() in the
Input library.
by Ralf Bitter
Thu Nov 25, 2021 7:24 pm
Forum: CGIs and the Server
Topic: Revigniter V2 sanitizing issue
Replies: 27
Views: 15371

Re: Revigniter V2 sanitizing issue

Hi istech, valid characters for POST keys are ”(?i)^[a-z0-9:_\/-]+$" (regular expression). This has actually never changed, except for the brackets added in version 1.7.2. The problem is that base64 encoded strings may have one or more equal signs at the end of the line. I think you can safely remov...
by Ralf Bitter
Wed Nov 24, 2021 8:07 pm
Forum: CGIs and the Server
Topic: Revigniter v2 "Unable to load the requested stack" error
Replies: 5
Views: 3574

Re: Revigniter v2 "Unable to load the requested stack" error

Hi istech,

there is a new revIgniter version (2.3.2) that fixes
the problem that stack names must match stack file names.

Go to advanced search