aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-03-21 17:08:17 +0900
committernsfisis <nsfisis@gmail.com>2026-03-21 17:17:22 +0900
commitbf8bd3c48d5d9420f6fde3331467c8dd41a26c6b (patch)
tree4f505d4011b5ca2a6b49e2f9054f6513adb90730 /frontend
parenta4037c3bf5d66f1303ffa629f77ab7cdfd5f0eb6 (diff)
downloadphperkaigi-2026-albatross-bf8bd3c48d5d9420f6fde3331467c8dd41a26c6b.tar.gz
phperkaigi-2026-albatross-bf8bd3c48d5d9420f6fde3331467c8dd41a26c6b.tar.zst
phperkaigi-2026-albatross-bf8bd3c48d5d9420f6fde3331467c8dd41a26c6b.zip
feat(worker): block eval() in PHP code submissionsHEADmain
Add validation to reject PHP code containing eval() before execution. Update the problem description to inform participants about this restriction. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'frontend')
-rw-r--r--frontend/app/components/Gaming/ProblemColumnContent.tsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/frontend/app/components/Gaming/ProblemColumnContent.tsx b/frontend/app/components/Gaming/ProblemColumnContent.tsx
index bc6b43a..60d02ee 100644
--- a/frontend/app/components/Gaming/ProblemColumnContent.tsx
+++ b/frontend/app/components/Gaming/ProblemColumnContent.tsx
@@ -34,6 +34,14 @@ function PhpNotice() {
<InlineCode code="E_ALL &amp; ~E_WARNING &amp; ~E_NOTICE &amp; ~E_DEPRECATED" />{" "}
に設定されています。
</p>
+ <p>
+ 2026-03-21 追記:
+ <InlineCode code="eval()" /> は (多分) 使えなくなりました。
+ この判定には偽陽性があり、
+ <InlineCode code="eval()" /> のないコードも{" "}
+ <InlineCode code="eval()" /> ありと判定される場合がありますが、
+ 意図的に狙わない限り誤判定することはないと思います。
+ </p>
</div>
</FoldableBorderedContainerWithCaption>
);