Skip to content

Commit d55563e

Browse files
authored
Merge pull request #63 from NetCommons3/fix/escape
fix: escape
2 parents b724105 + 3c3623d commit d55563e

File tree

2 files changed

+20
-12
lines changed

2 files changed

+20
-12
lines changed

.github/workflows/tests.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ name: tests
1515
jobs:
1616
setup:
1717
name: setup
18-
runs-on: ubuntu-18.04
18+
runs-on: ubuntu-latest
1919
steps:
2020
- name: Slack Notification on Start
2121
uses: rtCamp/action-slack-notify@v2.2.0
@@ -28,7 +28,7 @@ jobs:
2828
tests:
2929
name: tests
3030
needs: setup
31-
runs-on: ubuntu-18.04
31+
runs-on: ubuntu-latest
3232
strategy:
3333
matrix:
3434
php: [ '7.1', '7.2', '7.3', '7.4' ]
@@ -92,46 +92,54 @@ jobs:
9292
docker-compose exec -T nc3app bash /opt/scripts/app-build.sh
9393
9494
- name: phpcs (PHP CodeSniffer)
95+
if: always()
9596
run: |
9697
cd ${NC3_DOCKER_DIR}
9798
docker-compose exec -T nc3app bash /opt/scripts/phpcs.sh
9899
99100
- name: phpmd (PHP Mess Detector)
101+
if: always()
100102
run: |
101103
cd ${NC3_DOCKER_DIR}
102104
docker-compose exec -T nc3app bash /opt/scripts/phpmd.sh
103105
104106
- name: phpcpd (PHP Copy/Paste Detector)
107+
if: always()
105108
run: |
106109
cd ${NC3_DOCKER_DIR}
107110
docker-compose exec -T nc3app bash /opt/scripts/phpcpd.sh
108111
109112
- name: gjslint (JavaScript Style Check)
113+
if: always()
110114
run: |
111115
cd ${NC3_DOCKER_DIR}
112116
docker-compose exec -T nc3app bash /opt/scripts/gjslint.sh
113117
114118
- name: phpdoc (PHP Documentor)
119+
if: always()
115120
run: |
116121
cd ${NC3_DOCKER_DIR}
117122
docker-compose exec -T nc3app bash /opt/scripts/phpdoc.sh
118123
119124
- name: phpunit (PHP UnitTest)
125+
if: always()
120126
run: |
121127
cd ${NC3_DOCKER_DIR}
122128
docker-compose exec -T nc3app bash /opt/scripts/phpunit.sh
123129
sudo -s chmod a+w -R ${NC3_BUILD_DIR}/build
124130
125-
- name: push coveralls
126-
env:
127-
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
128-
COVERALLS_FLAG_NAME: ${{ matrix.php }}
129-
run: |
130-
cd ${NC3_BUILD_DIR}
131-
ls -la ${NC3_BUILD_DIR}
132-
vendors/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
131+
# - name: push coveralls
132+
# if: success()
133+
# env:
134+
# COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
135+
# COVERALLS_FLAG_NAME: ${{ matrix.php }}
136+
# run: |
137+
# cd ${NC3_BUILD_DIR}
138+
# ls -la ${NC3_BUILD_DIR}
139+
# vendors/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
133140

134141
- name: docker-compose remove
142+
if: always()
135143
run: |
136144
cd ${NC3_DOCKER_DIR}
137145
docker-compose rm -f
@@ -148,7 +156,7 @@ jobs:
148156

149157
teardown:
150158
name: teardown
151-
runs-on: ubuntu-18.04
159+
runs-on: ubuntu-latest
152160
needs: tests
153161
steps:
154162
# テスト成功時はこちらのステップが実行される

View/Helper/MultidatabaseContentViewElementHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private function __renderViewElementFile($content, $colNo, $showCounter = 0) {
161161
$result .= '<a href="' . $fileUrl . '" target="_blank">';
162162
// 表示が全てダウンロードとなる。ファイル名を表示する
163163
//$result .= __d('multidatabases', 'Download');
164-
$result .= $fileInfo['UploadFile']['original_name'];
164+
$result .= h($fileInfo['UploadFile']['original_name']);
165165
$result .= '</a>';
166166
} else {
167167
$result = $this->__renderViewElementFileReqAuth($content, $colNo, $fileInfo);

0 commit comments

Comments
 (0)