Skip to content

Commit 632f672

Browse files
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>
1 parent c879c49 commit 632f672

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)