michael-e

Results 183 comments of michael-e

Stack Overflow has nice discussions about our issue, e.g. http://stackoverflow.com/questions/397250/unicode-regex-invalid-xml-characters

Just for the records: In my current project — which is not a website but more like a "web-app database management system" — I use a pretty brutal cleanup in...

For the records: The above didn't work as intended. Now I use: ``` php // Replace any whitespace with a single space, strip remaining control // characters (including DEL), and...

In the meantime I think about moving the "advanced cleaning functionality" into the field's `checkPostFieldData` function, because I would like to clean up before validating the field's input. This is...

Well, yes , one could manipulate all field data (for both, "create" and "edit" procedures), and it might be called `EntryFilterData` or similar. It's hard to get it right –...

Just some thoughts: For the frontend, we already have `EventPreSaveFilter`, which can do a lot (even throw a validation/whatever result into XML). You can build event filters and attach them...

FYI: At the moment I have the exact same hack in two different functions of the Input field, (`checkPostFieldData` and `processRawFieldData`): ``` php // Replace any whitespace with a single...

FYI: Regarding the delegates, I did more research today. My idea—performing POST data manipulation and advanced validation using a delegate—wouldn't even work with the `EventPreSaveFilter` delegate (which I [mentioned above](https://github.com/symphonycms/symphony-2/issues/2369#issuecomment-142950485))....

> … rare demands … we shouldn't discuss this any further @nitriques: I was referring to my examples of advanced data validation/manipulation, which attempt to show how far one might...

@brendo [wanted this to be fixed in 2.6.x](https://github.com/symphonycms/symphony-2/issues/2369#issuecomment-146042699), however tagged it for 3.0.0. To which branch should I send it? (Sometimes it's hard to decide if something is a bugfix...