From cd1313280c16d17e952275bedc7b475a89c8f77f Mon Sep 17 00:00:00 2001 From: simnandez Date: Thu, 23 Jan 2014 16:00:15 +0100 Subject: [PATCH] Fix: Bad navigation into stock product tab --- htdocs/product/stock/product.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/product/stock/product.php b/htdocs/product/stock/product.php index 153356d969f..7896476775a 100644 --- a/htdocs/product/stock/product.php +++ b/htdocs/product/stock/product.php @@ -5,6 +5,7 @@ * Copyright (C) 2005 Simon TOSSER * Copyright (C) 2005-2009 Regis Houssin * Copyright (C) 2013 Cédric Salvador + * Copyright (C) 2013 Juanjo Menent * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -41,8 +42,8 @@ $action=GETPOST("action"); $cancel=GETPOST('cancel'); // Security check -$id = GETPOST('id')?GETPOST('id'):GETPOST('ref'); -$ref = GETPOST('ref'); +$id=GETPOST('id', 'int'); +$ref=GETPOST('ref', 'alpha'); $stocklimit = GETPOST('stocklimit'); $desiredstock = GETPOST('desiredstock'); $cancel = GETPOST('cancel');