JamesHeinrich / phpThumb

phpThumb() - The PHP thumbnail generator
Other
315 stars 98 forks source link

fix fsockopen http status text #134

Closed tmgreensolutions closed 5 years ago

tmgreensolutions commented 5 years ago

Some webserver only send a status code in the header. phpthumb treats this as an error even if the status code is 200. Example: https://es2.devgs.de/client/assets/kein_bild.png

The regex makes the status text optional.

JamesHeinrich commented 5 years ago

Thanks for the fix, but you put an unnecessary backslash in front of the front-slash, as in HTTP\/ should be just HTTP/. If you could please remove that I'll merge it.

tmgreensolutions commented 5 years ago

Thanks for the hint, I removed the unnecessary backslash.