Skip to content

Commit e6cf1de

Browse files
committed
fix bugs field value with "$" not show
1 parent e456f49 commit e6cf1de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/PHPJasperXML_expression.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,9 @@ public function escapeIfRequire(mixed $value,mixed $datatype): mixed
263263
{
264264
$value = '';
265265
}
266-
// $data = addslashes($value);
267-
// $data = addslashes($value);
268-
$data = '"'.addslashes($value).'"';
266+
$data = addslashes($value);
267+
$data = str_replace('$','\$',$data);
268+
$data = '"'.$data.'"';
269269
break;
270270
}
271271
return (string) $data;

0 commit comments

Comments
 (0)