Changeset 13494


Ignore:
Timestamp:
2007/05/28 15:40:00 (17 years ago)
Author:
adati
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel/html/products/list.php

    r13457 r13494  
    421421function lfconvertParam () { 
    422422    global $objPage; 
    423     $count = 1; 
    424     while(1) { 
    425         $quantity_key = 'quantity' . $count; 
    426         if (isset($objPage->arrForm[$quantity_key])) { 
    427             $objPage->arrForm[$quantity_key] 
    428                 = htmlspecialchars($objPage->arrForm[$quantity_key], ENT_QUOTES, CHAR_CODE); 
    429         } else { 
    430             break; 
     423     
     424    foreach ($objPage->arrForm as $key => $value) { 
     425        if (preg_match('/^quantity[0-9]+/', $key)) { 
     426             $objPage->arrForm[$key] 
     427                = htmlspecialchars($objPage->arrForm[$key], ENT_QUOTES, CHAR_CODE); 
    431428        } 
    432         $count++; 
    433429    } 
    434430} 
Note: See TracChangeset for help on using the changeset viewer.