Bug adding file ext in admincp with similar proprieties

Status
Not open for further replies.

McGeek

Customer
I've added an ext for .cs for c sharp files

Code:
Extension : cs
Mime-Type : text/plain
Max Extension Size : 2000
Max Height : 0
Max Width : 0
Extension Group : Files

Now I'm trying to add a "c" file

Code:
Extension : c
Mime-Type : text/plain
Max Extension Size : 2000
Max Height : 0
Max Width : 0
Extension Group : Files

vBDownloads is telling me "That extension already exists. Please go back."

Its doing the same thing with a .cpp (c++) file as well
 
Fixed it:

dbtech/downloads/actions/admin/doaddextension.php

Line 20 to 23
Change
Code:
$check = $db->query_first("
	SELECT * FROM " . TABLE_PREFIX . "dbtech_downloads_extensions
	WHERE extension = '" . $db->escape_string($extension) . "' OR mime = '" . $db->escape_string($mime) . "'
");

to
Code:
$check = $db->query_first("
	SELECT * FROM " . TABLE_PREFIX . "dbtech_downloads_extensions
	WHERE extension = '" . $db->escape_string($extension) . "'");
 
Status
Not open for further replies.

Legacy vBDownloads

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
1,713
Customer rating
0.00 star(s) 0 ratings
Top