summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild/preseed.pl7
1 files changed, 5 insertions, 2 deletions
diff --git a/build/preseed.pl b/build/preseed.pl
index 805a57667..d4ef6810b 100755
--- a/build/preseed.pl
+++ b/build/preseed.pl
@@ -67,8 +67,11 @@ $p->parse_file($xmlfile);
sub replace_entities {
my $text = shift;
- $text =~ s/&archive-mirror;/http.us.debian.org/;
- $text =~ s/&releasename;/$release/;
+ $text =~ s/&archive-mirror;/http.us.debian.org/g;
+ $text =~ s/&releasename;/$release/g;
+ $text =~ s/>/>/g;
+ $text =~ s/&lt;/</g;
+
# Any unrecognized entities?
if ( $text =~ /(&[^ ]+;)/ ) {