mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 22:18:46 +02:00
N°8772 - Compiler: Expressions in input
This commit is contained in:
@@ -78,4 +78,10 @@ abstract class AbstractProperty
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public function QuoteForPHP(string $sValue): string
|
||||
{
|
||||
$sEscaped = str_replace(['\\', "'"], ['\\\\', "\\'"], $sValue);
|
||||
return "'$sEscaped'";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user