summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2018-10-01 16:44:05 (GMT)
committerChristian Pointner <equinox@helsinki.at>2018-10-01 16:44:05 (GMT)
commit36fc438075c73ecadfce7de6305660aedf9331c9 (patch)
tree94820ab7e2e1229f837e5e60ca35b8b80e656343
parent4c4d6cfaa9b5d820eb9fbc145610bdc25aec671f (diff)
fix datatype for rhimportd json request
-rw-r--r--rhautoimport.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/rhautoimport.pm b/rhautoimport.pm
index a366d9a..9bdbc8b 100644
--- a/rhautoimport.pm
+++ b/rhautoimport.pm
@@ -215,7 +215,7 @@ sub import_uri
$request{'LOGIN_NAME'} = RD_USER;
$request{'SHOW_ID'} = int($show_id);
if($cart) {
- $request{'CART_NUMBER'} = $cart;
+ $request{'CART_NUMBER'} = $cart + 0; ## force $cart to be of type number
$request{'CLEAR_CART'} = JSON->true;
} else {
$request{'CLEAR_SHOW_CARTS'} = JSON->true;