- Fixed "ternary operator"
- Fixed bugs and code review (1.1.1 version)
- Fixed bug in constants (1.1.0 version)
- Change constant names
- [Security] Setup allow domains and ports
- Droped support for php4 (and who uses it?)
- This version range (1.0.x) will not receive new features, only fixes, the next version will be available soon.
- Support for html2canvas 0.5
- Fixed bug if CURL is not avaliable
- Added support to CURL for improve usage in PHP 5.6
- Organized functions
- Replace 0755 to 0666 permission for backup folder (
images/
)
- Now using camelCase in functions
- Fixed extension SVG in saved sources
- Added support to data URI scheme
- Added support to SVG images
- Fixed BUG (Windows servers) with
dirname
, If the script was located in the root folder, thedirname
function had an invalid character for additional urls generated by this script. json_encode_string
function now has a parameter that removes the quotes from the beginning and end of the string.- Extra in pullrequest: pull/10 - Thanks to @jhewes
- Added support to "HTTP Basic access authentication"
- Removed unused vars
- Replace tabs by spaces (size 4)
- Added
=== false
misses inisset()
- Improved type
- Removed
empty($maxExec)
- Removed unnecessary
=== true
- Replace
mkdir(PATH, 755)
tomkdir(PATH, 0755)
- 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.)
- Removed
?>
to prevent whitespace.
- Changed order of functions
- Removed
$e
variable (unused) injson_encode
- Fixed line
$response = 'Failed to rename the temporary file';
($response
is array) - Removed incompatibility with PHP old versions (before 5.1.0) in
relative2absolute
- Added returns "blank" in
relative2absolute
(ifscheme
invalid in$m
parameter) - Added detect problem in redirects (if you have multiple redirects)
- Replace
stripos
bystrpos
(php4) - version 0.1.7 - Added comparison of "socket time limit (timeout)" and "max_execution_time" (php.ini), preventing the page goes blank - version 0.1.7
- Fixed urls like
//website.com/path/../file.png
tohttp://website.com/file.png
- Improved "typing" for better updates/pull-request
- Converted various variables to (int)
- Removed must-revalidate in header
- Improved forks
- Improved http response, If http_status<>200, return error in html2canvas
- Fixed bug in Facebook redirect (HTTP/1.1 302 forced.302)
- Removed unnecessary Etag-header
- Fixed undefined variables
- Fixed bug in
json_encode_string
(characters) - Fixed "invalid escapes" in
json_encode_string
- Improved performance in
json_encode_string
- Removed
utf8_encode
(unnecessary) injson_encode_string
- Fixed bug in
relative2absolute
downloadSource
always returns array- Replace
error_get_last
byget_error
- Added comments in functions
- Added support to javascript functions based in Objects (update to 0.1.2)
- Fixed bug in 0.1.2 (update to 0.1.3)
- Added support to "relative paths" (function relative2absolute) (0.1.4)
- Added "referrer header" (if exists) (0.1.4)
- Added "remove charset" for mime-types (eg. text/html; charset=ut8 => text/html) (0.1.4)
- Added prefix in files created by html2canvas-php-proxy (0.1.4)
- "remove_old_files function" removes only the files with prefix (0.1.4)
- Support for PHP 4.3
- Replace
isset($vector['var']{0})
byisset($vector['var']) && strlen($vector['var'])>0
to prevent the errorUninitialized string offset: 0
MAX_EXEC
may not be less than 15 seconds- Add support to bitmap files
- If the parameter "callback" has invalid characters then sets the variable
$param_callback
withJSLOG
; - Detects if the "host:" header was set by the client
- Remove port from
$_SERVER['HTTP_HOST']
to prevent problem in the formatting of the address - Add function for remove old files
- Fixed "validate" callback param
- Script completely rewritten
- Added detection list "Content-length:" header
- Added alternative to callback parameter (eg. The function call is
console.log
oralert()
, if there is no callback parameter) - Added support for detecting max_execution_time
- Added the use of
erro_get_last()
- Added support for "Location:" header
- Added support for detecting 304 HTTP, return an error warning (socket does not use/send Etags)
- Added
utf8_encode
tojson_encode
to prevent the error string becomes NULL - Added an error warning, if there is no the file "Content-type:" header
- In case of HTTP 3xx response, if there is no "Location:" header, returns an error warning
- Improved response headers from proxy (
function setHeaders
) - Improved validation http/https (
function isHttpUrl
) - Prevent warning in
rename()
(PHP 5.2 in CGI), because the warningreturn false;
- In addition to other improvements when the script was rewritten
- Fixed tmp fileName $locationFile.$token
- Use complete URI scheme for https