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

Xoopsgallery & Protector: Out of bounds error

List posts in the topic

question Xoopsgallery & Protector: Out of bounds error

msg# 1
depth:
0
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

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!