Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Allow and replace special characters like umlauts #734

Merged
merged 2 commits into from
Dec 10, 2014
Merged

[TASK] Allow and replace special characters like umlauts #734

merged 2 commits into from
Dec 10, 2014

Conversation

bjo3rnf
Copy link
Contributor

@bjo3rnf bjo3rnf commented Dec 5, 2014

Currently <v:format.uri.sanitizeString /> strips all special characters like umlauts which is not what one would expect. Open for discussion though is if this feature should be configurable via viewhelper argument.

@bjo3rnf
Copy link
Contributor Author

bjo3rnf commented Dec 5, 2014

Freaking tests fail with PHP 5.3 :/

*
* @var array
*/
protected $specialCharSearch = array('ä', 'ö', 'ü', 'ß');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be neater to make the source/replace arrays into one array with $source=>$replace, then extract using array_keys and array_values before str_replace. That would keep the dimensions of both arrays always in sync.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 9fc5848 on bjo3rnf:ze_germans into e5aa4d0 on FluidTYPO3:development.

Additional characters or overriding of the built-in map via argument customMap.
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 69d0090 on bjo3rnf:ze_germans into e5aa4d0 on FluidTYPO3:development.

NamelessCoder added a commit that referenced this pull request Dec 10, 2014
[TASK] Allow and replace special characters like umlauts
@NamelessCoder NamelessCoder merged commit 4e0f276 into FluidTYPO3:development Dec 10, 2014
@bjo3rnf bjo3rnf deleted the ze_germans branch January 28, 2015 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants