1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Fixes #4114 - Better file inspector corruption warning message

Now advises admins to reupload using binary mode if the admin uploads
files with FTP
This commit is contained in:
Nick Liu
2020-04-29 10:50:50 -05:00
parent b360e551dd
commit 7291ebc8b1
2 changed files with 5 additions and 2 deletions

View File

@@ -18,12 +18,14 @@ jobs:
- name: Install operating system dependencies
run: sudo apt-get install -y git tar gzip xz-utils zip php-cli
- uses: actions/checkout@v2
- uses: actions/checkout@v2.1.0
with:
fetch-depth: 0
- name: Fetch version information
run: git fetch origin +refs/tags/*:refs/tags/* +refs/heads/*:refs/remotes/origin/*
run: |
git remote set-url origin "$(git remote get-url origin | sed 's|^git@github\.com:|https://github.com/|')"
git fetch origin +refs/tags/*:refs/tags/* +refs/heads/*:refs/remotes/origin/*
# Remove this step if the old version tags make it to the official repository.
- name: Fetch version information from really old releases

View File

@@ -1627,6 +1627,7 @@ class e107
"File Inspector will be inoperative. " .
"Resolve this issue by uploading a good copy of the core image to " .
escapeshellarg($fileInspectorPath) . ". " .
"If uploading with FTP, use binary transfer mode. " .
"Error message: " .
$e->getMessage()
);