Skip to content

Commit

Permalink
Avoid quotes into CURL_CONFIG_CA filename (#454)
Browse files Browse the repository at this point in the history
Remove double quotes when returned by "curl-config --ca"

Co-authored-by: Alban Peignier <[email protected]>
  • Loading branch information
albanpeignier and Alban Peignier authored Aug 23, 2024
1 parent 13144ec commit 78e0a0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
else
$LIBS << " #{`curl-config --libs`.strip}"
end
ca_bundle_path=`curl-config --ca`.strip
ca_bundle_path=`curl-config --ca`.strip.gsub(/^"([^"]+)"$/,'\1')
if !ca_bundle_path.nil? and ca_bundle_path != ''
$defs.push( %{-D HAVE_CURL_CONFIG_CA} )
$defs.push( %{-D CURL_CONFIG_CA='#{ca_bundle_path.inspect}'} )
Expand Down

0 comments on commit 78e0a0e

Please sign in to comment.