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

Update SVGPolygonalShape.php, trimm points attribute from trailing spaces #23

Merged
merged 1 commit into from
Feb 6, 2017

Conversation

ptsavdar
Copy link
Contributor

@ptsavdar ptsavdar commented Feb 6, 2017

Sometimes $attrs['points'] contain trailing spaces in the end or beginning of string which results to an error (undefined index). Trimmed those spaces to solve the issue.

@meyfa meyfa added the enhancement Improvement to an existing feature label Feb 6, 2017
@meyfa
Copy link
Owner

meyfa commented Feb 6, 2017

Thanks, very much appreciated!

@meyfa meyfa merged commit 84339ea into meyfa:master Feb 6, 2017
@meyfa
Copy link
Owner

meyfa commented Feb 6, 2017

Tagged as release 0.5.4.

ptsavdar added a commit to ptsavdar/php-svg that referenced this pull request Feb 27, 2017
* Trim polygon points attribute when parsing (meyfa#23)

* Fix `SVGRect::setHeight()` setting the width

* Add support for `<image>` tag (meyfa#26)

* Add SVGImageRenderer for embedded images
Can render URLs as well as data URIs.

* Add SVGImageElement for `<image>` tag

* Suppress unavoidable PHPMD warnings [in the above commits]

* Review fixes

* Added xmlns:xlink attr to SVG document

* Added xmlns:xlink attr to test

* Added xmlns:xlink attr to test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants