Microsoft KB Archive/248991

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 13:51, 21 July 2020 by X010 (talk | contribs) (Text replacement - """ to """)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Base


Site Server Search Web Admin Does Not Allow Spaces in Path Rules

Article ID: 248991

Article Last Modified on 7/30/2001



APPLIES TO

  • Microsoft Site Server 3.0 Standard Edition



This article was previously published under Q248991

SYMPTOMS

In general, the Site Server Search Web Admin program has the same functionality as the Microsoft Management Console (MMC). However, when you add Path Rules that contain spaces, the Path Rule is not accepted and the following error message occurs:

You must type a site path. Do not use spaces.

RESOLUTION

In the Ctprspa.asp file, which is located in the Microsoft Site Server\SiteServer\Admin\Knowledge\Search directory, check the code to check for spaces. This function begins at line 38 and reads as follows:

  if ((strPath == "") || (strPath.indexOf(" ") != -1)) 
  { 
   alert("<% = L_NoSitePath_Message %>");
   return false;
  }
                

Modify this to be:

 if (strPath == "") 
  { 
   alert("<% = L_NoSitePath_Message %>");
   return false;
  }
                



This allows you to enter spaces in the Path Rules.

Note: This affects all Path Rules including HTTP and File Paths.


Keywords: kbtshoot kbprb KB248991