Skip to content

Commit a9be95f

Browse files
authored
Fix security issue (#324)
* escaping xml characters * trigger ci only on release * bump app number * fixup! trigger ci only on release
1 parent 62a72cd commit a9be95f

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
overwrite: true
3232

3333
- name: Upload app to Nextcloud appstore
34+
if: "!github.event.release.prerelease"
3435
uses: R0Wi/nextcloud-appstore-push-action@v1
3536
with:
3637
app_name: ${{ env.APP_NAME }}

appinfo/info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The community document server will automatically be configured if no other docum
1414
1515
Additionally, the community document server only supports running on x86-64 Linux servers.]]>
1616
</description>
17-
<version>0.1.16</version>
17+
<version>0.1.17</version>
1818
<licence>agpl</licence>
1919
<author>Robin Appelman</author>
2020
<namespace>DocumentServer</namespace>

lib/Document/ConverterBinary.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public function run(string $param, string $password = null): string {
4848
$pipes = [];
4949
$cmd = './x2t ' . escapeshellarg($param);
5050
if ($password) {
51+
$password = htmlspecialchars($password, ENT_XML1, 'UTF-8');
5152
$cmd .= ' ' . escapeshellarg("<TaskQueueDataConvert><m_sPassword>$password</m_sPassword></TaskQueueDataConvert>");
5253
}
5354
$process = proc_open($cmd, $descriptorSpec, $pipes, self::BINARY_DIRECTORY, []);

0 commit comments

Comments
 (0)