PEAK XOOPS - ImpressCMS protector patch request! in englishin japanese

ImpressCMS protector patch request!

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2009/1/29 8:01
vaughan  ¾åÅùʼ   Posts: 37
Hi gijoe

great work on the latest protector module.

I have made a couple of modifications to your latest module for use with ImpressCMS.

edited:

filters_disabled/postcommon_post_htmlpurify4guest.php

and added check for icms, so that if used with ImpressCMS 1.1 or later, then this filter will use the impresscms core HTMLPurifier library instead, it makes no sense for the protector library to be also loaded into memory when icms core library is already present.

I have also updated the HTMLPurifier library to the latest 3.20 standalone version, as I have found it is better on resources than the full package & contains less files.

also I have added a few notes to the README file, to explain how to install with ImpressCMS 1.1 or later, as you are aware, you don't need to edit mainfile.php when using impresscms because we use preload feature instead.

I have included the preload/protector.php file in the ImpressCMS_extras directory included in the patch.

with regards to the patch you include for databasefactory.php, this will no longer be required for ImpressCMS 1.1.2 or later, as I have applied your patch to the core from that version onwards.

you can download the patch here

it would be much appreciated if you could take a look over the edits, and possibly add to your next release.

regards

Vaughan
Votes:6 Average:6.67
Previous post - Next post | Parent - No child | Posted on 2009/4/3 11:46
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi vaughan.

Thanks for your energetic works and suggestions.

In Protector 3.33,

- added extras/ folder for your preload/protector.php
- added an instruction how to install Protector into ImpressCMS without editing mainfile.php (good work!)
- fixed postcommon_post_htmlpurify4guest.php can work with ImpressCMS

I've referred your modified codes.
Thank you.

A notice:
$_POST = $pure->icms_html_purifier($_POST, 'protector');
causes $_POST='Array' with some environments 'magic_quotes_gpc=on'.

But, the version of HTMLPurifier inside Protector is not up to dated.
It is used many modules like pico, d3downloads etc.

I have to update it with care.


Thank you, vaughan!
Votes:4 Average:7.50

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!