Skip to content

Commit a3e8338

Browse files
committed
Version 1.2.0 ⚡
* New constants * Support for APNG images * Support for AVIF images * Support for WEBP images * Support for define cURL SSL version * Improved temporary files * Fixed the use of line breaks in HTTP requests * Several code improvements
1 parent 4ef6229 commit a3e8338

File tree

9 files changed

+476
-1790
lines changed

9 files changed

+476
-1790
lines changed

CHANGELOG.md

Lines changed: 119 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -1,139 +1,150 @@
11
# Changelog
22

3+
## html2canvas-php-proxy 1.2.0
4+
5+
* New constants
6+
* Support for APNG images
7+
* Support for AVIF images
8+
* Support for WEBP images
9+
* Support for define cURL SSL version
10+
* Improved temporary files
11+
* Fixed the use of line breaks in HTTP requests
12+
* Several code improvements
13+
314
## html2canvas-php-proxy 1.1.2
415

5-
- Fixed "ternary operator"
6-
- Fixed bugs and code review (1.1.1 version)
7-
- Fixed bug in constants (1.1.0 version)
16+
* Fixed "ternary operator"
17+
* Fixed bugs and code review (1.1.1 version)
18+
* Fixed bug in constants (1.1.0 version)
819

920
## html2canvas-php-proxy 1.0.0
1021

11-
- Change constant names
12-
- [Security] Setup allow domains and ports
13-
- Droped support for php4 (and who uses it?)
14-
- This version range (1.0.x) will not receive new features, only fixes, the next version will be available soon.
22+
* Change constant names
23+
* [Security] Setup allow domains and ports
24+
* Droped support for php4 (and who uses it?)
25+
* This version range (1.0.x) will not receive new features, only fixes, the next version will be available soon.
1526

1627
## html2canvas-php-proxy 0.2.0
1728

18-
- Support for html2canvas 0.5
29+
* Support for html2canvas 0.5
1930

2031
## html2canvas-php-proxy 0.1.14
2132

22-
- Fixed bug if CURL is not avaliable
33+
* Fixed bug if CURL is not avaliable
2334

2435
## html2canvas-php-proxy 0.1.13
2536

26-
- Added support to CURL for improve usage in PHP 5.6
27-
- Organized functions
37+
* Added support to CURL for improve usage in PHP 5.6
38+
* Organized functions
2839

2940
## html2canvas-php-proxy 0.1.12
3041

31-
- Replace 0755 to 0666 permission for backup folder (`images/`)
42+
* Replace 0755 to 0666 permission for backup folder (`images/`)
3243

3344
## html2canvas-php-proxy 0.1.11
3445

35-
- Now using camelCase in functions
36-
- Fixed extension SVG in saved sources
46+
* Now using camelCase in functions
47+
* Fixed extension SVG in saved sources
3748

3849
## html2canvas-php-proxy 0.1.10
3950

40-
- Added support to data URI scheme
41-
- Added support to SVG images
42-
- Fixed BUG (Windows servers) with `dirname`, If the script was located in the root folder, the `dirname` function had an invalid character for additional urls generated by this script.
43-
- `json_encode_string` function now has a parameter that removes the quotes from the beginning and end of the string.
44-
- Extra in pullrequest: [pull/10](https://github.com/brcontainer/html2canvas-php-proxy/pull/10) - Thanks to [@jhewes](https://github.com/jhewes)
51+
* Added support to data URI scheme
52+
* Added support to SVG images
53+
* Fixed BUG (Windows servers) with `dirname`, If the script was located in the root folder, the `dirname` function had an invalid character for additional urls generated by this script.
54+
* `json_encode_string` function now has a parameter that removes the quotes from the beginning and end of the string.
55+
* Extra in pullrequest: [pull/10](https://github.com/brcontainer/html2canvas-php-proxy/pull/10) * Thanks to [@jhewes](https://github.com/jhewes)
4556

4657
## html2canvas-php-proxy 0.1.9
4758

48-
- Added support to "HTTP Basic access authentication"
59+
* Added support to "HTTP Basic access authentication"
4960

5061
## html2canvas-php-proxy 0.1.8
5162

52-
- Removed unused vars
53-
- Replace tabs by spaces (size 4)
54-
- Added `=== false` misses in `isset()`
55-
- Improved type
56-
- Removed `empty($maxExec)`
57-
- Removed unnecessary `=== true`
58-
- Replace `mkdir(PATH, 755)` to `mkdir(PATH, 0755)`
59-
- Added detect "SSL socket stream" support (If the socket requires "SSL", but do not have suporter then shows an error, but if you do not need to "SSL", even if it is not supported, then the code will work without showing error.)
60-
- Removed `?>` to prevent whitespace.
61-
62-
## html2canvas-php-proxy 0.1.6 and 0.1.7 - 07.05.2014
63-
64-
- Changed order of functions
65-
- Removed `$e` variable (unused) in `json_encode`
66-
- Fixed line `$response = 'Failed to rename the temporary file';` (`$response` is array)
67-
- Removed incompatibility with PHP old versions (before 5.1.0) in `relative2absolute`
68-
- Added returns "blank" in `relative2absolute` (if `scheme` invalid in `$m` parameter)
69-
- Added detect problem in redirects (if you have multiple redirects)
70-
- Replace `stripos` by `strpos` (php4) - version 0.1.7
71-
- Added comparison of "socket time limit (timeout)" and "max_execution_time" (php.ini), preventing the page goes blank - version 0.1.7
72-
- Fixed urls like `//website.com/path/../file.png` to `http://website.com/file.png`
73-
74-
## html2canvas-php-proxy 0.1.5 - 04.05.2014
75-
76-
- Improved "typing" for better updates/pull-request
77-
- Converted various variables to (int)
78-
- Removed must-revalidate in header
79-
- Improved forks
80-
- Improved http response, If http_status<>200, return error in html2canvas
81-
- Fixed bug in Facebook redirect (HTTP/1.1 302 forced.302)
82-
- Removed unnecessary Etag-header
83-
- Fixed undefined variables
84-
- Fixed bug in `json_encode_string` (characters)
85-
- Fixed "invalid escapes" in `json_encode_string`
86-
- Improved performance in `json_encode_string`
87-
- Removed `utf8_encode` (unnecessary) in `json_encode_string`
88-
- Fixed bug in `relative2absolute`
89-
- `downloadSource` always returns array
90-
- Replace `error_get_last` by `get_error`
91-
- Added comments in functions
92-
93-
94-
## html2canvas-php-proxy 0.1.2 to 0.1.4 - 17.03.2014
95-
96-
- Added support to javascript functions based in Objects (update to 0.1.2)
97-
- Fixed bug in 0.1.2 (update to 0.1.3)
98-
- Added support to "relative paths" (function relative2absolute) (0.1.4)
99-
- Added "referrer header" (if exists) (0.1.4)
100-
- Added "remove charset" for mime-types (eg. text/html; charset=ut8 => text/html) (0.1.4)
101-
- Added prefix in files created by html2canvas-php-proxy (0.1.4)
102-
- "remove_old_files function" removes only the files with prefix (0.1.4)
103-
104-
105-
## html2canvas-php-proxy 0.1.1 - 01.12.2013
106-
107-
- Support for PHP 4.3
108-
- Replace `isset($vector['var']{0})` by `isset($vector['var']) && strlen($vector['var'])>0` to prevent the error `Uninitialized string offset: 0`
109-
- `MAX_EXEC` may not be less than 15 seconds
110-
- Add support to bitmap files
111-
- If the parameter "callback" has invalid characters then sets the variable `$param_callback` with `JSLOG`;
112-
- Detects if the "host:" header was set by the client
113-
- Remove port from `$_SERVER['HTTP_HOST']` to prevent problem in the formatting of the address
114-
- Add function for remove old files
115-
- Fixed "validate" callback param
116-
117-
118-
## html2canvas-php-proxy 0.1.0 - 24.11.2013
119-
120-
- Script completely rewritten
121-
- Added detection list "Content-length:" header
122-
- Added alternative to callback parameter (eg. The function call is `console.log` or `alert()`, if there is no callback parameter)
123-
- Added support for detecting max_execution_time
124-
- Added the use of `erro_get_last()`
125-
- Added support for "Location:" header
126-
- Added support for detecting 304 HTTP, return an error warning (socket does not use/send Etags)
127-
- Added `utf8_encode` to `json_encode` to prevent the error string becomes NULL
128-
- Added an error warning, if there is no the file "Content-type:" header
129-
- In case of HTTP 3xx response, if there is no "Location:" header, returns an error warning
130-
- Improved response headers from proxy (`function setHeaders`)
131-
- Improved validation http/https (`function isHttpUrl`)
132-
- Prevent warning in `rename()` (PHP 5.2 in CGI), because the warning `return false;`
133-
- In addition to other improvements when the script was rewritten
134-
135-
136-
## html2canvas-php-proxy 0.0.4 - 20.11.2013
137-
138-
- Fixed tmp fileName $locationFile.$token
139-
- Use complete URI scheme for https
63+
* Removed unused vars
64+
* Replace tabs by spaces (size 4)
65+
* Added `=== false` misses in `isset()`
66+
* Improved type
67+
* Removed `empty($maxExec)`
68+
* Removed unnecessary `=== true`
69+
* Replace `mkdir(PATH, 755)` to `mkdir(PATH, 0755)`
70+
* Added detect "SSL socket stream" support (If the socket requires "SSL", but do not have suporter then shows an error, but if you do not need to "SSL", even if it is not supported, then the code will work without showing error.)
71+
* Removed `?>` to prevent whitespace.
72+
73+
## html2canvas-php-proxy 0.1.6 and 0.1.7 * 07.05.2014
74+
75+
* Changed order of functions
76+
* Removed `$e` variable (unused) in `json_encode`
77+
* Fixed line `$response = 'Failed to rename the temporary file';` (`$response` is array)
78+
* Removed incompatibility with PHP old versions (before 5.1.0) in `relative2absolute`
79+
* Added returns "blank" in `relative2absolute` (if `scheme` invalid in `$m` parameter)
80+
* Added detect problem in redirects (if you have multiple redirects)
81+
* Replace `stripos` by `strpos` (php4) * version 0.1.7
82+
* Added comparison of "socket time limit (timeout)" and "max_execution_time" (php.ini), preventing the page goes blank * version 0.1.7
83+
* Fixed urls like `//website.com/path/../file.png` to `http://website.com/file.png`
84+
85+
## html2canvas-php-proxy 0.1.5 * 04.05.2014
86+
87+
* Improved "typing" for better updates/pull-request
88+
* Converted various variables to (int)
89+
* Removed must-revalidate in header
90+
* Improved forks
91+
* Improved http response, If http_status<>200, return error in html2canvas
92+
* Fixed bug in Facebook redirect (HTTP/1.1 302 forced.302)
93+
* Removed unnecessary Etag-header
94+
* Fixed undefined variables
95+
* Fixed bug in `json_encode_string` (characters)
96+
* Fixed "invalid escapes" in `json_encode_string`
97+
* Improved performance in `json_encode_string`
98+
* Removed `utf8_encode` (unnecessary) in `json_encode_string`
99+
* Fixed bug in `relative2absolute`
100+
* `downloadSource` always returns array
101+
* Replace `error_get_last` by `get_error`
102+
* Added comments in functions
103+
104+
105+
## html2canvas-php-proxy 0.1.2 to 0.1.4 * 17.03.2014
106+
107+
* Added support to javascript functions based in Objects (update to 0.1.2)
108+
* Fixed bug in 0.1.2 (update to 0.1.3)
109+
* Added support to "relative paths" (function relative2absolute) (0.1.4)
110+
* Added "referrer header" (if exists) (0.1.4)
111+
* Added "remove charset" for mime-types (eg. text/html; charset=ut8 => text/html) (0.1.4)
112+
* Added prefix in files created by html2canvas-php-proxy (0.1.4)
113+
* "remove_old_files function" removes only the files with prefix (0.1.4)
114+
115+
116+
## html2canvas-php-proxy 0.1.1 * 01.12.2013
117+
118+
* Support for PHP 4.3
119+
* Replace `isset($vector['var']{0})` by `isset($vector['var']) && strlen($vector['var'])>0` to prevent the error `Uninitialized string offset: 0`
120+
* `MAX_EXEC` may not be less than 15 seconds
121+
* Add support to bitmap files
122+
* If the parameter "callback" has invalid characters then sets the variable `$param_callback` with `JSLOG`;
123+
* Detects if the "host:" header was set by the client
124+
* Remove port from `$_SERVER['HTTP_HOST']` to prevent problem in the formatting of the address
125+
* Add function for remove old files
126+
* Fixed "validate" callback param
127+
128+
129+
## html2canvas-php-proxy 0.1.0 * 24.11.2013
130+
131+
* Script completely rewritten
132+
* Added detection list "Content-length:" header
133+
* Added alternative to callback parameter (eg. The function call is `console.log` or `alert()`, if there is no callback parameter)
134+
* Added support for detecting max_execution_time
135+
* Added the use of `erro_get_last()`
136+
* Added support for "Location:" header
137+
* Added support for detecting 304 HTTP, return an error warning (socket does not use/send Etags)
138+
* Added `utf8_encode` to `json_encode` to prevent the error string becomes NULL
139+
* Added an error warning, if there is no the file "Content-type:" header
140+
* In case of HTTP 3xx response, if there is no "Location:" header, returns an error warning
141+
* Improved response headers from proxy (`function setHeaders`)
142+
* Improved validation http/https (`function isHttpUrl`)
143+
* Prevent warning in `rename()` (PHP 5.2 in CGI), because the warning `return false;`
144+
* In addition to other improvements when the script was rewritten
145+
146+
147+
## html2canvas-php-proxy 0.0.4 * 20.11.2013
148+
149+
* Fixed tmp fileName $locationFile.$token
150+
* Use complete URI scheme for https

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016 Guilherme Nascimento (brcontainer@yahoo.com.br)
3+
Copyright (c) 2025 Guilherme Nascimento (brcontainer@yahoo.com.br)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

0 commit comments

Comments
 (0)