Skip to content

Commit

Permalink
arch: XML-escape package descriptions
Browse files Browse the repository at this point in the history
This resolves #46
  • Loading branch information
ximion committed Jul 19, 2017
1 parent cc3eb94 commit 59d11bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/asgen/backends/archlinux/alpkgindex.d
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ static import std.file;

import asgen.logging;
import asgen.zarchive;
import asgen.utils : escapeXml;
import asgen.backends.interfaces;
import asgen.backends.archlinux.alpkg;
import asgen.backends.archlinux.listfile;
Expand Down Expand Up @@ -59,7 +60,7 @@ public:
if (pkgDesc is null)
return;

auto desc = "<p>%s</p>".format (pkgDesc);
auto desc = "<p>%s</p>".format (pkgDesc.escapeXml);
pkg.setDescription (desc, "C");
}

Expand Down

0 comments on commit 59d11bc

Please sign in to comment.