Allow '+' in branch names
[buildfarm-client.git] / EximBuild / WebTxn.pm
index f71f55a27074eef87bc64ec396e48b9dafd76dee..455cd45c818de7f76797914ed0d4e0d5a10db46d 100644 (file)
@@ -14,6 +14,7 @@ needed on older Msys installations (i.e. things running perl < 5.8).
 =cut 
 
 use strict;
+use URI::Escape;
 
 use vars qw($VERSION); $VERSION = 'REL_0.1';
 
@@ -99,7 +100,7 @@ sub run_web_txn
     my $content =
         "changed_files=$changed_this_run&"
       . "changed_since_success=$changed_since_success&"
-      ."branch=$branch&res=$status&stage=$stage&animal=$animal&ts=$ts"
+      . 'branch=' . uri_escape($branch) . "&res=$status&stage=$stage&animal=$animal&ts=$ts"
       ."&log=$log_data&conf=$confsum";
     my $sig= sha1_hex($content,$secret);