|
Joomla VFM File Repository Component Bug Fixes |
|
|
|
|
Written by Administrator
|
|
Thursday, 26 July 2007 |
|
I've been testing out a few download managers on my site and so far my favorite is the VFM File Repository component. It's got some nice AJAX functionality, but lacks a functional category feature, so all downloads simply display in a list. When editing the descriptions via AJAX, I discovered some issues with quotes not being properly unescaped. To fix this, simply open the "components/com_vfm/vfm.php" file. On about line 191 you will see the following code: $result = $vfm->setAttribute(array( 'description' => $_REQUEST['contents'] ));
Simply replace it with $result = $vfm->setAttribute(array( 'description' => stripslashes($_REQUEST['contents']) ));
This will fix the escaping problem and allow you to embed quotes and html with attributes into your descriptions. You can do the same thing for the title field by making a similar edit to line 179 of the source file.
|
|
Last Updated ( Thursday, 26 July 2007 )
|