www.uburst.com www.uburst.com

"Ampersand Issue (Departments)"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

General Troubleshooting
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"Ampersand Issue (Departments)"
Posted by Tom Carter on Mar-31-01 at 08:47 PM (EST)
Hi,

When I try to use a department that has an ampersand (&) in it's name the program does not correctly parse the ampersand when I try to show all clients listed in the department.

When I remove the ampersand it works fine. Is there a quick adjustment that I can make to the regex feature in the script to allow me to use the ampersand (just one less warning for the users)..

Thanks,
Tom Carter

Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

RE: Ampersand Issue (Departments), Bill Weiner, Apr-05-01, (1)
Script adjustment to fix ampersand ..., Rich Chamberlain, Apr-10-01, (2)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: Ampersand Issue (Departments)"
Posted by Bill Weiner on Apr-05-01 at 08:41 PM (EST)
My guess is that the ampersand (&) gets passed on the URL somewhere... and thus is treated as part of a GET command.

In any case, I'll check with the uSignIn developer to see if there are any alternatives.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "Script adjustment to fix ampersand in department name"
Posted by Rich Chamberlain on Apr-10-01 at 09:03 PM (EST)
Here is the fix:

Approximately 40 lines from the bottom of the script, you will find a check for command type that reads:

elsif($command eq "listdept")

this is the start of the block that performs the links to departments. 10 lines down, you will find the start of a foreach loop that looks like this:

foreach(@depts)

this starts the loop for listing departments. 3 lines below this, you will see a line that looks like this:

#&fullHeaderCell($_);

directly after this line insert the following statement on its own line:

$_ =~ s/\&/\%26/g;

The symbol /\ is a slash followed by a backslash. There is a space between the _ and the = and between the ~ and the s. Make sure this command is on its own line directly after the #fullHeaderCell($_) statement. Also, if you do your editing on a windows machine, make sure the file transfers are in ascii mode.

This should fix it.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.