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

test out of range strings #55

Merged
merged 1 commit into from
Oct 2, 2013
Merged

test out of range strings #55

merged 1 commit into from
Oct 2, 2013

Conversation

lsmith77
Copy link
Member

@lsmith77 lsmith77 commented Oct 2, 2013

to prevent #53

@lsmith77
Copy link
Member Author

lsmith77 commented Oct 2, 2013

/cc @dbu

@lsmith77
Copy link
Member Author

lsmith77 commented Oct 2, 2013

we might be able to relax some of the checks eventually ..

@@ -1197,6 +1198,13 @@ private function storeProperty(Property $property)
$path = $property->getPath();
$typeid = $property->getType();
$nativeValue = $property->getValueForStorage();
if ($typeid === PropertyType::STRING) {
foreach ((array) $nativeValue as $string) {
Copy link
Member

Choose a reason for hiding this comment

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

are you dead sure that this is under no circumstances a regression? like if i pass in some object that can do foreach? or do we have a similar construct elsewhere already?

Copy link
Member Author

Choose a reason for hiding this comment

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

@dbu
Copy link
Member

dbu commented Oct 2, 2013

apart from this, thanks for fixing. sad that we need to limit those, but rather limit until we figure out properly how to handle those character ranges. can you please open a follow-up issue to maybe fix this at some point?

dbu added a commit that referenced this pull request Oct 2, 2013
@dbu dbu merged commit c6fb0ea into master Oct 2, 2013
@dbu dbu deleted the validate_strings branch October 2, 2013 20:46
@dbu
Copy link
Member

dbu commented Oct 2, 2013

thanks lukas. things are really getting ready!

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