4875: give more useful error message to user issue_4875
authorTJ <acontent@iam.tj>
Sat, 8 Oct 2011 23:56:52 +0000 (00:56 +0100)
committerTJ <acontent@iam.tj>
Fri, 21 Oct 2011 15:24:16 +0000 (16:24 +0100)
home/ims/ims_import.php

index 0d0fba1..c31a9ad 100644 (file)
@@ -827,7 +827,7 @@ if (isset($_REQUEST['url']) && ($_REQUEST['url'] != 'http://') ) {
                fclose($fp);
        }
        else {
-               $msg->addError(array('IMPORT_FAILED', $http_req->_errno . ": " . $http_req->_errstr));
+               $msg->addError(array('INVALID_INPUT', '"'.$_REQUEST['url'] . '" HTTPRequest error ' . $http_req->_errstr));
        }
        $_FILES['file']['name']     = $filename;
        $_FILES['file']['tmp_name'] = $full_filename;