Skip to content

Commit 77ca6a9

Browse files
committed
ensure proper escaping of curl examples
1 parent c96c142 commit 77ca6a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/docs/generator/generate.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
if($capture === true && trim($line) != '----') {
6161
$out = str_replace(PHP_EOL, '', $line);
6262
if(trim(strlen($out)) > 0) {
63-
$docs[$ptrs['f']][$ptrs['e']]['content'][] = $out;
63+
$docs[$ptrs['f']][$ptrs['e']]['content'][] = str_replace("'", "\'", $out);
6464
}
6565
}
6666

@@ -186,7 +186,6 @@
186186
$counters['new_asciidoc']++;
187187
}
188188
}
189-
190189
}
191190

192191
echo "--------------------------------------- \n";

0 commit comments

Comments
 (0)