Skip to content

Commit 2d8aa5d

Browse files
committed
php@8.1: Fix incomplete string escaping or encoding
Potential fix for code scanning alert no. 173: Incomplete string escaping or encoding Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: Patrick Linnane <patrick@linnane.io>
1 parent 3d0146a commit 2d8aa5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Formula/p/php@8.1.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def install
9191

9292
# apxs will interpolate the @ in the versioned prefix: https://bz.apache.org/bugzilla/show_bug.cgi?id=61944
9393
s.gsub! "LIBEXECDIR='$APXS_LIBEXECDIR'",
94-
"LIBEXECDIR='" + "#{lib}/httpd/modules".gsub("@", "\\@") + "'"
94+
"LIBEXECDIR='" + "#{lib}/httpd/modules".gsub("\\", "\\\\").gsub("@", "\\@") + "'"
9595
end
9696

9797
# Update error message in apache sapi to better explain the requirements

0 commit comments

Comments
 (0)