From 786b75d493e1005082ac15ca508655277b1f9695 Mon Sep 17 00:00:00 2001 From: Aaron Date: Sun, 28 Sep 2025 10:21:42 +0800 Subject: [PATCH] =?UTF-8?q?09-28-=E5=91=A8=E6=97=A5=5F10-21-42?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 02.WEB安全/11.模版注入.md | 2 +- push.bat | 27 --------------------------- 2 files changed, 1 insertion(+), 28 deletions(-) delete mode 100644 push.bat diff --git a/02.WEB安全/11.模版注入.md b/02.WEB安全/11.模版注入.md index 4105d0d..9737aca 100644 --- a/02.WEB安全/11.模版注入.md +++ b/02.WEB安全/11.模版注入.md @@ -41,7 +41,7 @@ Twig 是一个灵活、快速、安全的 PHP 模板语言。它将模板编译 建议通过 Composer 安装 Twig: ```bash -docker run -d -p 8080:80 -v /root/wwwtest/:/app/public/ --name lnmp74 fbraz3/lnmp:7.4 +docker run -d -p 8080:80 -v /root/wwwtest/:/app/public/ --name lnmp74 registry.cn-hangzhou.aliyuncs.com/eagleslab/service:lnmp74 docker exec -it lnmp74 bash [root@c356af4b5b68 /]# cd /app/public [root@c356af4b5b68 www]# composer require "twig/twig:^3.0" diff --git a/push.bat b/push.bat deleted file mode 100644 index ad61e3b..0000000 --- a/push.bat +++ /dev/null @@ -1,27 +0,0 @@ -@echo off -setlocal enabledelayedexpansion - -rem 获取当前日期和时间 -for /f "tokens=1-4 delims=/-. " %%i in ("%date%") do ( - set yyyy=%%i - set mm=%%j - set dd=%%k -) - -set hh=%time:~0,2% -set nn=%time:~3,2% -set ss=%time:~6,2% - -rem 去掉小时的空格 -if "%hh:~0,1%"==" " set hh=0%hh:~1,1% - -set commitmsg=%yyyy%-%mm%-%dd%_%hh%-%nn%-%ss% - -git config --global core.autocrlf input - -git add . -git rm --cached push.bat -git commit -m "%commitmsg%" -git push -u origin main - -endlocal \ No newline at end of file