Index: lib-common.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/filedepot/lib-common.php,v
retrieving revision 1.10
diff -u -p -r1.10 lib-common.php
--- lib-common.php	19 Jul 2010 01:48:58 -0000	1.10
+++ lib-common.php	1 Oct 2010 15:07:14 -0000
@@ -335,7 +335,7 @@ function filedepot_sendNotification($id,
       . "WHERE file.cid=category.cid and file.fid=%d";
       $query = DB_query($sql, $id);
       list($fid, $fname, $cid, $submitter, $catname) = array_values(db_fetch_array($query));
-      $link = "{$base_url}/index.php?q=filedepot&cid={$cid}&fid={$fid}";        
+      $link = url('filedepot', array('query' => drupal_query_string_encode(array('cid' => $cid, 'fid' => $fid)), 'absolute' => true));
       $message['subject'] = variable_get('site_name', '') . ' - ' . t('New Document Management Update');
       $messagetext2ary = array('!file' => $fname,
                              '!bp' => '<p>',
@@ -351,7 +351,7 @@ function filedepot_sendNotification($id,
       list($fid, $fname, $cid, $submitter, $catname) = array_values(db_fetch_array($query));
       // Just need to create this SQL record for this user - to fake out logic below
       $target_users[] = $submitter;
-      $link = "{$base_url}/index.php?q=filedepot&cid={$cid}&fid={$fid}";     
+      $link = url('filedepot', array('query' => drupal_query_string_encode(array('cid' => $cid, 'fid' => $fid)), 'absolute' => true));
       $message['subject'] = variable_get('site_name', '') . ' - ' . t('New File Submission Approved');       
       $messagetext = t('Site member %@name: your file in folder: !folder', 
       array('!folder' => $catname)) . '<p>';
