rem: var filename = docUrlOrFilename; var scheme = GetScheme(docUrlOrFilename); if (scheme) {  var lastSlash = docUrlOrFilename.lastIndexOf("\/"); var url = docUrlOrFilename.slice(0, lastSlash); filename = docUrlOrFilename.slice(lastSlash+1); 
add: if (GetScheme(docUrlOrFilename)) FillInMatchingPublishData(publishData, docUrlOrFilename); else publishData.filename = docUrlOrFilename; 
context: function GetPublishDataFromSiteName(siteName, docUrlOrFilename){  var publishBranch = GetPublishPrefsBranch();  if (!publishBranch)    return null;  var siteNameList = GetSiteNameList(false, false);  if (!siteNameList)    return null;  for (var i = 0; i < siteNameList.length; i++)  {    if (siteNameList[i] == siteName)    {      var publishData = GetPublishData_internal(publishBranch, siteName);      var filename = docUrlOrFilename;      var scheme = GetScheme(docUrlOrFilename);      if (scheme)      {        // Separate into the base url and filename        var lastSlash = docUrlOrFilename.lastIndexOf("\/");        var url = docUrlOrFilename.slice(0, lastSlash);        filename = docUrlOrFilename.slice(lastSlash+1);        // Get length of the publish url that matches this docUrl        var len = GetMatchingPublishUrlLength(publishData, url);        if (len)          // The remainder is a subdirectory within the site          publishData.docDir = FormatDirForPublishing(url.slice(len));      }      publishData.filename = filename;      return publishData;    }  }  return null;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d91b053f419d4d0175bdb25deed21f7800ac5c27/publishprefs.js/buggy/editor/ui/composer/content/publishprefs.js