All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 43817132 authored by Elijah Grubb's avatar Elijah Grubb

Add quote escaping regex

parent 4f688fe5
...@@ -5146,6 +5146,7 @@ sub emulabizeImage($;$$$$$$$$$) ...@@ -5146,6 +5146,7 @@ sub emulabizeImage($;$$$$$$$$$)
# need to be careful about variables to be expanded # need to be careful about variables to be expanded
foreach my $elem (@$dockerentrypoint) { foreach my $elem (@$dockerentrypoint) {
print $runitfile "\""; print $runitfile "\"";
$elem =~ s/\"/\\\"/g;
print $runitfile $elem; print $runitfile $elem;
print $runitfile "\""; print $runitfile "\"";
print $runitfile " "; print $runitfile " ";
...@@ -5157,6 +5158,7 @@ sub emulabizeImage($;$$$$$$$$$) ...@@ -5157,6 +5158,7 @@ sub emulabizeImage($;$$$$$$$$$)
foreach my $elem (@$dockercmd) { foreach my $elem (@$dockercmd) {
print $runitfile "\""; print $runitfile "\"";
$elem =~ s/\"/\\\"/g;
print $runitfile $elem; print $runitfile $elem;
print $runitfile "\""; print $runitfile "\"";
print $runitfile " "; print $runitfile " ";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment