BabbleBoard Support Forums
What Are YOU Babbling About?
Hello Guest!  |  Home  |  Search  |  Login  |  Register
Home | Bug Reports | Wrong attachments area
Wrong attachments area
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Monday, Jul 28, 2008 11:36  Trackback URL

When uploading an attachment it kept saying 'Wrong attachment area', which was because $attachtype was not always assigned.

To solve this, open uploads/upload.php. Find (lines 201-203):

RAW CODE
$topicid = escape_string($_GET['topicid']);
$attachtype=escape_string($_GET['attachtype']);
$hash=escape_string($_GET['hash']);


and move it above:
RAW CODE
if (isset($_GET['id'])){


That should solve the problem  

Go To Top
 
1 Guest(s), 0 Member(s) Viewing This Topic:
 
 
 
Powered by BabbleBoard v1.1.6
All Content © BabbleBoard Support Forums