[mapguide-trac] #539: Implement CLIENTIP and CLIENTAGENT tracking in the Server's Access.log

MapGuide Open Source trac_mapguide at osgeo.org
Mon May 5 22:23:02 EDT 2008


#539: Implement CLIENTIP and CLIENTAGENT tracking in the Server's Access.log
----------------------+-----------------------------------------------------
 Reporter:  tonyfang  |         Owner:  tonyfang
     Type:  defect    |        Status:  reopened
 Priority:  medium    |     Milestone:  2.1     
Component:  Web API   |       Version:  2.0.0   
 Severity:  minor     |    Resolution:          
 Keywords:            |   External_id:          
----------------------+-----------------------------------------------------
Comment (by jbirch):

 I'm probably being pedantic here and drawing out a really basic change,
 but I would suggest a regex match on the field to ensure it contains an IP
 address (or something vaguely resembling one).  I see a number of these
 coming through with junk strings in them.  An inaccurate but fairly quick
 one would be something like:

 {{{

 /^(\d{1,3}\.){3}\d{1,3}$/

 }}}

 This is assuming that the above is PHP code (sure looks like it) and you
 can use preg_match()

-- 
Ticket URL: <https://trac.osgeo.org/mapguide/ticket/539#comment:7>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list