On Monday, November 5, 2012 11:11:55 AM UTC-8, Dan Wilson - [email protected] wrote: > > Cleaning up the event names is something we've talked about. > > It could get sort of tricky, since we have to be careful not to > intentionally break something. What would you suggest? > > Well, common problems I'm seeing in URLs right now are:
* single quotes which break XML parsing * newlines on the end of a cgi.path_info for SES * junk characters that don't belong in URLs The RFC is relatively reasonable and has a regexp for validation: "...Only alphanumerics [0-9a-zA-Z], the special characters "$-_.+!*'()," *[not including the quotes - ed]*, and reserved characters used for their reserved purposes may be used unencoded within a URL." http://tools.ietf.org/html/rfc3986#appendix-B But, you might start with a baseline of cleaning it up such that MG won't throw an error but would treat it as an unknown event. At least strip out single/double quotes and trim whitespace off both ends? Brian -- Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en
