http://atutor.ca/atutor/mantis/view.php?id=4578
authorHarris Wong <hwong@ocad.ca>
Fri, 8 Oct 2010 20:06:20 +0000 (20:06 -0000)
committerHarris Wong <hwong@ocad.ca>
Fri, 8 Oct 2010 20:06:20 +0000 (20:06 -0000)
docs/include/classes/DAO/SecondaryResourcesDAO.class.php

index 6585590..9a76f07 100644 (file)
@@ -35,7 +35,7 @@ class SecondaryResourcesDAO extends DAO {
                global $addslashes;
                
                $primary_resource_id = intval($primary_resource_id);
-               $file_name = $addslashes($file_name);
+               $file_name = $addslashes(convertAmp($file_name));
                $lang = $addslashes($lang);
 
                $sql = "INSERT INTO ".TABLE_PREFIX."secondary_resources