Skip to content

Commit 9ad5f2a

Browse files
authored
Merge pull request #158 from cornernote/patch-1
wrap ListEntry::update() values in htmlspecialchars()
2 parents bb10524 + 30416d0 commit 9ad5f2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Google/Spreadsheet/ListEntry.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function update($values)
9191
$entry->addChild("id", $this->xml->id->__toString());
9292

9393
foreach($values as $colName => $value) {
94-
$entry->addChild("xmlns:gsx:$colName", $value);
94+
$entry->addChild("xmlns:gsx:$colName", htmlspecialchars($value));
9595
}
9696

9797
ServiceRequestFactory::getInstance()->put($this->getEditUrl(), $entry->asXML());
@@ -114,4 +114,4 @@ public function getEditUrl()
114114
{
115115
return Util::getLinkHref($this->xml, 'edit');
116116
}
117-
}
117+
}

0 commit comments

Comments
 (0)