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

Filter the format option used in paths using a modified pathify #17

Closed
wants to merge 1 commit into from

Conversation

spongeben
Copy link

Filter the format option used in cache paths using a modified pathify() to avoid bug while creating cache directories (as seen in #16)

@@ -247,7 +247,7 @@ private function pathify($format)
if (is_array($format)) {
return md5(serialize($format));
} else {
return $format;
return str_replace(array('<', '>'), array('L','G'), $format);
Copy link
Member

Choose a reason for hiding this comment

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

Be sure all special characters are handled, not only the one you use now.

Check https://github.com/snowcap/SnowcapImBundle/blob/master/docs/extra.rst to see example of other characters used.

@Moinax
Copy link
Member

Moinax commented Feb 10, 2015

Thank you to add Unit tests for your new behaviour.

@spongeben
Copy link
Author

I'll try to add this ASAP

@Moinax Moinax closed this Dec 1, 2015
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.

2 participants