Skip to content

Commit 87dcba3

Browse files
committed
Encode string values, as they can be random data
1 parent 0e0db2b commit 87dcba3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/PHPFUI/InstaDoc/Section/CodeCommon.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ protected function getValueString($value) : string
446446
break;
447447

448448
case 'string':
449+
$value = \htmlspecialchars($value);
449450
$value = $this->getColor('string', "'{$value}'");
450451

451452
break;

0 commit comments

Comments
 (0)