NetReg: apostrophe

New Message Reply Date view Thread view Subject view Author view Attachment view

From: Robert Morse (Robert_Morse@brown.edu)
Date: Wed Aug 20 2003 - 07:29:47 CDT


Hello All,

We have just recently actived our netreg installation here. It was working
fine until a user with an apostrophe in their name logged in and registered.
This put their name in the dhcpd.conf.new file, apostrophe and all. When
the new file was copied into place and dhcpd tried to restart, it complained
about this apostrophe and would not start up. My fix was to add this code
to the register.cgi script in the append_host_entry subroutine:

    if ($FORM{'user'} =~ /\'/) {
           $FORM{'user'} =~ s/\'//g;
    }

Removing the apostrophe seems to work ok (so far). I was wondering if anyone
else has run into this problem? If so, what was your workaround?
(it was not my decision to allow apostrophe's in login id's!!!)

Thanks.

**********************************************************************
To unsubscribe from this list, send an e-mail message to
majordomo@southwestern.edu containing a single line with the words:
unsubscribe netreg
Send requests for assistance to: owner-netreg@southwestern.edu
**********************************************************************


New Message Reply Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.4 : Thu Aug 12 2004 - 12:01:40 CDT