Skip to content

Commit 30416d0

Browse files
authored
wrap ListEntry::update() values in htmlspecialchars()
fixes #157 ref: http://stackoverflow.com/a/29679217/599477
1 parent bb10524 commit 30416d0

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)