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

ID: Q248991


The information in this article applies to:
  • Microsoft Site Server version 3.0


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.

Additional query words:

Keywords : kbdtatshoot
Version : winnt:3.0
Platform : winnt
Issue type : kbprb


Last Reviewed: December 21, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.