Bug Ampersand amp amp added automatically

Status
Not open for further replies.

gowri

Customer
Hi All,

if we use ampersand in creating categories it adds extra ampamp; has shown in the screen shotdownloads.jpg

thanks
gowri
 
If you edit the file

dbtech/downloads_pro/actions/admin/editcat.php

Find the line

PHP:
print_input_row($vbphrase['dbtech_downloads_category_name'], 'catname', $cat['catname']);

and change it to

PHP:
print_input_row($vbphrase['dbtech_downloads_category_name'], 'catname', unhtmlspecialchars($cat['catname']));

That will let you edit the category and get rid of any extra junk if there is any.

Then open

dbtech/downloads/actions/listings.php

Find the line
PHP:
        $sub = vB_Template::create('dbtech_downloads_listings_sub_bits');
after it add
PHP:
        $category['catname'] = unhtmlspecialchars($category['catname']);

That will display the sub categories correctly.

Sorry about that.
 
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,714
Customer rating
0.00 star(s) 0 ratings
Top