projects
/
acontent.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37271ef
)
4875: report HTTPRequest errors
author
TJ
<acontent@iam.tj>
Sat, 8 Oct 2011 20:30:14 +0000
(21:30 +0100)
committer
TJ
<acontent@iam.tj>
Fri, 21 Oct 2011 15:23:58 +0000
(16:23 +0100)
home/ims/ims_import.php
patch
|
blob
|
history
diff --git
a/home/ims/ims_import.php
b/home/ims/ims_import.php
index
b02f8ac
..
0d0fba1
100644
(file)
--- a/
home/ims/ims_import.php
+++ b/
home/ims/ims_import.php
@@
-825,7
+825,10
@@
if (isset($_REQUEST['url']) && ($_REQUEST['url'] != 'http://') ) {
exit;
}
fclose($fp);
- }
+ }
+ else {
+ $msg->addError(array('IMPORT_FAILED', $http_req->_errno . ": " . $http_req->_errstr));
+ }
$_FILES['file']['name'] = $filename;
$_FILES['file']['tmp_name'] = $full_filename;
$_FILES['file']['size'] = strlen($content);