[ic] Apply strip filter globally

Davor Ocelic docelic at spinlocksolutions.com
Thu Jun 5 11:04:14 UTC 2008


On Thu, 05 Jun 2008 11:45:18 +0200
Stefan Hornburg <racke at linuxia.de> wrote:

> Hello, folks!
> 
> It happens that users accidentally enter whitespace into form fields.
> This whitespace clutters up the database or if catched by a proper
> check shows confusing error messages.
> 
> For example, an user enters into an email field "bert at linuxia.de ".
> The email_only OrderCheck catches the mistake and complains about
> the invalid email address.
> 
> For specific fields the Filter directive is a solution:
> 
> Filter email strip
> 
> However, leading or trailing whitespace is almost never meaningful.
> 
> Is it possible to apply the strip filter globally and if not, do
> you think we should support this notion in Interchange?

Hm, sounds pretty cool. How about supporting regex or glob expansion
in Filter directive?

For example,

Filter  email.*   strip
Filter  text.*    entities

-doc



More information about the interchange-users mailing list