* In the 'folders' and 'portal' views, change the folder delimiter
authorArt Cancro <ajc@citadel.org>
Sat, 3 May 2003 16:57:04 +0000 (16:57 +0000)
committerArt Cancro <ajc@citadel.org>
Sat, 3 May 2003 16:57:04 +0000 (16:57 +0000)
  from / to \ to avoid conflict with room names that have slashes

webcit/ChangeLog
webcit/roomops.c

index bd4be33103dd1989967d4bc78457f7d9b23289ae..212c6ef32aea24ae8f6a92567b0a0117c5ebcdfb 100644 (file)
@@ -1,4 +1,8 @@
 $Log$
+Revision 410.21  2003/05/03 16:57:04  ajc
+* In the 'folders' and 'portal' views, change the folder delimiter
+  from / to \ to avoid conflict with room names that have slashes
+
 Revision 410.20  2003/05/03 16:23:29  ajc
 * Enforce three columns in portal view of room list
 
@@ -1364,3 +1368,4 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
+
index 4bec211be463f21ff32f270fc8c80395d95db56a..ab710771cef6757fe96b4db1f7fe05962f4c2cfd 100644 (file)
@@ -1778,10 +1778,10 @@ void room_to_folder(char *folder, char *room, int floor, int is_mailbox)
        }
 
        /*
-        * Replace "/" characters with "|" for pseudo-folder-delimiting
+        * Replace "\" characters with "|" for pseudo-folder-delimiting
         */
        for (i=0; i<strlen(folder); ++i) {
-               if (folder[i] == '/') folder[i] = '|';
+               if (folder[i] == '\\') folder[i] = '|';
        }
 }