Results 1 to 10 of 77

Threaded View

  1. #24
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,365
    Plugin Contributions
    94

    Default Re: AdminRequestSanitizer Error Log

    Here's what I've come up with (so far) for the EO sanitizer; please let me know if there's a better way. This approach gets the product's name and text attributes to not get &'d to death:
    Code:
        $eo_sanitizer = AdminRequestSanitizer::getInstance();
        $eo_group = array(
            'update_products' => array(
                'sanitizerType' => 'MULTI_DIMENSIONAL',
                'method' => 'post',
                'pages' => array('edit_orders'),
                'params' => array(
                    'update_products' => array('sanitizerType' => 'CONVERT_INT'),
                    'qty' => array('sanitizerType' => 'CONVERT_INT'),  //-This one should really be a float
                    'name' => array('sanitizerType' => 'PRODUCT_DESC_REGEX'),
                    'onetime_charges' => array('sanitizerType' => 'CURRENCY_VALUE_REGEX'),
                    'attr' => array(
                        'sanitizerType' => 'MULTI_DIMENSIONAL',
                        'params' => array(
                            'attr' => array('sanitizerType' => 'CONVERT_INT'),
                            'value' => array('sanitizerType' => 'PRODUCT_DESC_REGEX'),
                            'type' => array('sanitizerType' => 'CONVERT_INT')
                        )
                    ),
                    'model' => array('sanitizerType' => 'WORDS_AND_SYMBOLS_REGEX'),
                    'tax' => array('sanitizerType' => 'CURRENCY_VALUE_REGEX'),
                    'final_price' => array('sanitizerType' => 'CURRENCY_VALUE_REGEX'),
                )
            )
        );
        $eo_sanitizer->addComplexSanitization ($eo_group);
    Last edited by lat9; 7 Apr 2016 at 11:00 PM. Reason: Correct 'attr' values

 

 

Similar Threads

  1. v155 [Done v155a and v155b] AdminRequestSanitizer Problem
    By JRGoold in forum Bug Reports
    Replies: 15
    Last Post: 12 Dec 2016, 01:16 PM
  2. v151 Filename cannot be empty error in error log
    By woodlandsprite in forum General Questions
    Replies: 2
    Last Post: 29 Nov 2012, 06:03 AM
  3. Site down, getting error in debug error log
    By rcrosier in forum General Questions
    Replies: 3
    Last Post: 25 Mar 2009, 03:01 PM
  4. Replies: 6
    Last Post: 7 Dec 2007, 03:42 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR