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

Fixed checking case insensitive image extensions #10141

Merged
merged 2 commits into from
Apr 25, 2015

Conversation

agim-a
Copy link
Contributor

@agim-a agim-a commented Apr 22, 2015

Replaced strcmp with strcasecmp for checking image extenstions

Replaced strcmp with strcasecmp for checking image extenstions
@sergeyklay
Copy link
Contributor

or just use one time strtolower(ext) :)

@andresgutierrez
Copy link
Contributor

@sergeyklay +1

@agim-a
Copy link
Contributor Author

agim-a commented Apr 22, 2015

That is how I use it while I code, and I did not want to change the programming style of the file

On Apr 22, 2015, at 5:14 PM, Serghei Iakovlev [email protected] wrote:

or just use one time strtolower(ext) :)


Reply to this email directly or view it on GitHub #10141 (comment).

@KorsaR-ZN
Copy link
Contributor

@sergeyklay +1

@andresgutierrez
Copy link
Contributor

@agim-alb Could you please change it to one strtolower?

@agim-a
Copy link
Contributor Author

agim-a commented Apr 24, 2015

Changed it using strtolower.

Also fixed a bug using imagepng instead of imagejpeg to create png images

@sergeyklay
Copy link
Contributor

Also fixed a bug using imagepng instead of imagejpeg to create png images

👍

andresgutierrez added a commit that referenced this pull request Apr 25, 2015
Fixed checking case insensitive image extensions
@andresgutierrez andresgutierrez merged commit c4a3da5 into phalcon:master Apr 25, 2015
@andresgutierrez
Copy link
Contributor

I'v reverted this merge, could you please submit it to the 2.0.x branch?

https://github.com/phalcon/cphalcon/blob/master/CONTRIBUTING.md#pull-request-checklist

agim-a added a commit to agim-a/cphalcon that referenced this pull request Apr 25, 2015
Also fixed a bug using imagepng instead of imagejpeg to create png images

From pull request phalcon#10141
@sergeyklay
Copy link
Contributor

Oh.. it was a PR to the master

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