miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Bugs miniBB Support Forums / Bugs /  
 

backslash breakes file upload add-on

 
Author Prince
Partaker
#1 | Posted: 25 Sep 2012 13:20 
Hello,

Today I saw something weird happened to one of my topic and I got this error when trying to open that topic:

File Upload Error

<?php $dataFile=array('file_name'=>'girll_15.jpg', 'file_size'=>'8559', 'file_type'=>'image/jpeg', 'file_spec'=>4, 'image_width'=>160, 'image_height'=>200, 'tmb_width'=>150, 'tmb_height'=>150, 'alt'=>'\'); ?>
I went and removed this: \ which was in this line: 'alt'=>'\');

Any idea how to avoid that?

Author Paul
Lead Developer 
#2 | Posted: 25 Sep 2012 14:46 
Thanks for this report.

I think there is a bug in the add-on itself, which under certain settings in PHP allows to pass double backslash, and that breakes the code.

For example, if you enter the only double backslash in the "About this file" comment field (i.e. \\) it will produce the same error on miniBB demo.

I'll try to fix the add-on ASAP and will post in this thread when it's done.

Author Prince
Partaker
#3 | Posted: 25 Sep 2012 16:13 
Paul:
I'll try to fix the add-on ASAP and will post in this thread when it's done.
Thanks Paul, Appreciate it :)

Author Paul
Lead Developer 
#4 | Posted: 25 Sep 2012 18:54 
I've updated the add-on's package.
New version of the add-on available under the Customers area of miniBB.com.
You should entirely update the code coming for bb_plugins2.php, from the bb_plugins2.code.txt file.

In this fix, the script will consider all backslashes unnecessary in the file comment field, and will just remove them for any case.
Truly, I didn't ever meet a sensful description containing backslashes :)

Let me know it worked for you.

Author tom322
Active Member
#5 | Posted: 25 Sep 2012 19:28 
Hm, so only the bb_plugins2 code was changed, correct? :

Author Paul
Lead Developer 
#6 | Posted: 26 Sep 2012 10:50 
tom322:
so only the bb_plugins2 code was changed
Yes.

Author tom322
Active Member
#7 | Posted: 27 Sep 2012 20:20 
I updated it and can confirm it works (it would've been nice if the topic starter confirmed it first ;)

Author Prince
Partaker
#8 | Posted: 28 Sep 2012 01:53 
Paul:
Let me know it worked for you.
It works Paul, Thanks!

tom322:
it would've been nice if the topic starter confirmed it first
Of course.. I got file yesterday but just put it in my forum today because didn't have time until now :-p

Bugs miniBB Support Forums / Bugs /
 backslash breakes file upload add-on
 Share Topic's Link

This topic is closed. New replies are not allowed.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑