Wrap CUSTOM_IMAGE_TITLE in quotes

This commit is contained in:
ehpersonal38
2023-03-17 17:05:09 -04:00
parent c7151427ad
commit 61a67c517e
+2 -2
View File
@@ -222,8 +222,8 @@ if(isset($_GET['submit'])) {
if(isset($_GET["custom_image_label"])) { if(isset($_GET["custom_image_label"])) {
$custom_image_label = $_GET["custom_image_label"]; $custom_image_label = $_GET["custom_image_label"];
if(strcmp($custom_image_label,$config['CUSTOM_IMAGE_TITLE']) !== 0) { if(strcmp($custom_image_label,$config['CUSTOM_IMAGE_TITLE']) !== 0) {
$contents = preg_replace("/CUSTOM_IMAGE_TITLE=.*/", "CUSTOM_IMAGE_TITLE=$custom_image_label", $contents); $contents = preg_replace("/CUSTOM_IMAGE_TITLE=.*/", "CUSTOM_IMAGE_TITLE=\"$custom_image_label\"", $contents);
$contents2 = preg_replace("/CUSTOM_IMAGE_TITLE=.*/", "CUSTOM_IMAGE_TITLE=$custom_image_label", $contents2); $contents2 = preg_replace("/CUSTOM_IMAGE_TITLE=.*/", "CUSTOM_IMAGE_TITLE=\"$custom_image_label\"", $contents2);
} }
} }