PEAK XOOPS - Xoopsgallery & Protector: Out of bounds error in englishin japanese

Xoopsgallery & Protector: Out of bounds error

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2005/3/25 21:54
diyerk  企霹始   Posts: 5
I get an out-of-bounds error with protector and xoopsgallery modules.

When I upload images to the gallery, I get the following error:

Warning: preg_match() expects parameter 2 to be string, array given in [...]/modules/protector/class/protector.php on line 299

The image uploading was ok, the thumbnail appears, but when you click on it, the 'out of bounds' error appears.

Please help, as I really prefer xoopsgallery over the others.

Many many thanks in advance.

PS

Other info:

xoops 2.0.9.3
xoopsgallery 1.3.3.5 (?)the most recent
protector (latest)

PSS

I've just confirmed that this has something to do with protector because when I commented the protector line in the mainfile.php file, xoopsgallery is working fine.

I am no php guru so I don't have a clue how to 'fix' this 'bug'(?). Line 299 of class/protector.php is as follows:

if( ! empty( $_file['name'] ) && preg_match( $bad_pattern , $_file['name'] ) ) {


Thanks once again.
Votes:2 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2005/3/31 7:49
GIJOE  黎扦烦菱   Posts: 4110
hi diyerk.

Though I don't know XoopsGallery well, the warning does not harm it, I think.

Anyway, I've just modified the code of "bad extension", and you'll never see the warning.

If XoopsGallery can't works well with Protector, try to turn "Null-Byte" off.

Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2005/3/31 22:17
diyerk  企霹始   Posts: 5
I did what you have suggested but I got the same error. Now I am in a dilemma whether tol continue using xoopsgallery :( so that I could use protector or vice versa...

Thanks GIJ.

Votes:0 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!