Escape backslashes in image metadata
authorErich Lerch <erich.lerch@wien.gv.at>
Tue, 15 Oct 2013 23:09:27 +0000 (01:09 +0200)
committersaper <saper@saper.info>
Tue, 15 Oct 2013 23:09:27 +0000 (01:09 +0200)
commit1cb9da7a149166a5bbb8c07bf4a415882f716160
treebd8b5bc423dc3b7ab702c6cb95a39f4bd4f431d3
parentf98769b8dca22a84aaa476f9a8aeeaa70d431711
Escape backslashes in image metadata

Uploading a file with backslashes in the metadata
causes database exception on PostgreSQL, because
backslashes are sent to the 'bytea' datatype unencoded.

Bug: 52017
Change-Id: Ife56cffe3df83ec1a7bd39cdc4a0489f23354494
includes/filerepo/file/LocalFile.php