Hi All,
Running 1.5.5e on PHP7. I have a custom module that allows uploading a PDF from the admin which also adds a database record. This is for product manual and such. It's worked for years and years, but now in 1.5.5 I get a redirect to the admin home page. So I added a file in admin/includes/init_includes with
define('DO_DEBUG_SANITIZATION', 'true');
here's what I get
Code:
Jan-04-2018 07:07:37
=================================
Incoming GET Request Array
(
[pId] => 5926
[action] => upload_the_file
)
Incoming POST Request Array
(
)
Running Admin Sanitizers
PROCESSING SIMPLE_ALPHANUM_PLUS(GET) == action
PROCESSING SIMPLE_ALPHANUM_PLUS(GET) == pId
Outgoing GET Request Array
(
[pId] => 5926
[action] => upload_the_file
)
Outgoing POST Request Array
(
)
Jan-04-2018 07:07:37
=================================
Incoming GET Request Array
(
)
Incoming POST Request Array
(
)
Running Admin Sanitizers
Outgoing GET Request Array
(
)
Outgoing POST Request Array
(
)
To the admin/includes/init_includes/init_sanitize.php I've added 'pId' to the $group array for
$sanitizer->addSimpleSanitization('SIMPLE_ALPHANUM_PLUS', $group);
What am I missing here?
Thank You,
John
Bookmarks