rem: SetPublishStringPref(publishPrefsBranch, prefPrefix+"doc_dir", publishData.docDir); if (publishData.otherDir) SetPublishStringPref(publishPrefsBranch, prefPrefix+"other_dir", publishData.otherDir); 
add: SetPublishStringPref(publishPrefsBranch, prefPrefix+"doc_dir", FormatDirForPublishing(publishData.docDir)); 
context: function SavePublishData_Internal(publishPrefsBranch, publishData, siteIndex){  if (!publishPrefsBranch || !publishData)    return false;  SetPublishStringPref(publishPrefsBranch, "site_name."+siteIndex, publishData.siteName);  FixupUsernamePasswordInPublishData(publishData);  var prefPrefix = "site_data." + publishData.siteName + "."  SetPublishStringPref(publishPrefsBranch, prefPrefix+"url", publishData.publishUrl);  SetPublishStringPref(publishPrefsBranch, prefPrefix+"browse_url", publishData.browseUrl);  SetPublishStringPref(publishPrefsBranch, prefPrefix+"username", publishData.username);    try {    publishPrefsBranch.setBoolPref(prefPrefix+"save_password", publishData.savePassword);  } catch (e) {}  // Save password using PasswordManager   // (If publishData.savePassword = false, this clears existing password)  SavePassword(publishData);  SetPublishStringPref(publishPrefsBranch, prefPrefix+"doc_dir", publishData.docDir);  if (publishData.otherDir)    SetPublishStringPref(publishPrefsBranch, prefPrefix+"other_dir", publishData.otherDir);  // Save array of directories in each site  if (publishData.dirList.length)  {    publishData.dirList.sort();    var dirIndex = 0;    for (var j = 0; j < publishData.dirList.length; j++)    {      var dir = publishData.dirList[j];      // Don't store the root dir      if (dir && dir != "/")      {        SetPublishStringPref(publishPrefsBranch, prefPrefix + "dir." + dirIndex, dir);        dirIndex++;      }    }  }  return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d91b053f419d4d0175bdb25deed21f7800ac5c27/publishprefs.js/buggy/editor/ui/composer/content/publishprefs.js