Skip to content

Commit

Permalink
USE_FILENAME_DIR_INDEX を環境変数から渡せるよう修正
Browse files Browse the repository at this point in the history
USE_FILENAME_DIR_INDEX = true にしないと OWASP ZAP のアクティブスキャ
ンで page not found のエラーになってしまうため
  • Loading branch information
nanasess committed Feb 17, 2022
1 parent 24a0170 commit d3839be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docker-compose.owaspzap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ services:
# Use Zap Proxy
HTTP_URL: https://ec-cube/
HTTPS_URL: https://ec-cube/
USE_FILENAME_DIR_INDEX: 1
zap:
build:
context: ./zap
Expand Down
2 changes: 1 addition & 1 deletion html/define.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* true: 使用する, false: 使用しない, null: 自動(Symfony, IIS は true、それ以外は false)
* ※ IIS は、POST 時にファイル名を使用しないと不具合が発生する。(http://support.microsoft.com/kb/247536/ja)
*/
define('USE_FILENAME_DIR_INDEX', null);
define('USE_FILENAME_DIR_INDEX', getenv('USE_FILENAME_DIR_INDEX') ? (bool) getenv('USE_FILENAME_DIR_INDEX') : null);

$autoload = HTML_REALDIR . HTML2DATA_DIR . 'vendor/autoload.php';
if (!file_exists($autoload) && !is_readable($autoload)) {
Expand Down

0 comments on commit d3839be

Please sign in to comment.