[Scummvm-git-logs] scummvm-web master -> e1fc73022904b494cda5bfe727154629f1fd1750
Thunderforge
noreply at scummvm.org
Fri Jan 14 06:33:46 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .
Summary:
e1fc730229 WEB: Fixing captions for games with quotes in name (#198)
Commit: e1fc73022904b494cda5bfe727154629f1fd1750
https://github.com/scummvm/scummvm-web/commit/e1fc73022904b494cda5bfe727154629f1fd1750
Author: Thunderforge (wjherrmann at gmail.com)
Date: 2022-01-14T00:33:43-06:00
Commit Message:
WEB: Fixing captions for games with quotes in name (#198)
`Spy Fox in "Dry Cereal"` was appearing as `Spy Fox in`. Replacing the quotes with `"` so it renders properly in HTML.
Changed paths:
include/OrmObjects/Screenshot.php
diff --git a/include/OrmObjects/Screenshot.php b/include/OrmObjects/Screenshot.php
index efe8f29a..24b56039 100644
--- a/include/OrmObjects/Screenshot.php
+++ b/include/OrmObjects/Screenshot.php
@@ -67,7 +67,8 @@ class Screenshot extends BaseScreenshot
public function getCaption()
{
- $name = $this->getGame()->getName();
+ // Escape quotes in the name, such as for `Spy Fox in "Dry Cereal"`
+ $name = str_replace("\"", """, $this->getGame()->getName());
$extras = [];
if ($this->getVariant()) {
$extras[] = $this->getVariant();
More information about the Scummvm-git-logs
mailing list