Changeset 550 for trunk/docs


Ignore:
Timestamp:
Nov 24, 2015 5:38:54 PM (8 years ago)
Author:
anonymous
Message:

Escaped quotes from email from names.
Changed logMsg string truncation method and added version to email log msg.
Better variable testing in carry queries.
Spelling errors.
Added runtime cache to Currency.
Added logging to form validation.
More robust form validation.
Added json serialization methond to Version.

Location:
trunk/docs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/examples/contact_form/contact.php

    r479 r550  
    44 * For details visit the project site: <http://trac.strangecode.com/codebase/>
    55 * Copyright 2001-2012 Strangecode, LLC
    6  * 
     6 *
    77 * This file is part of The Strangecode Codebase.
    88 *
     
    1111 * Free Software Foundation, either version 3 of the License, or (at your option)
    1212 * any later version.
    13  * 
     13 *
    1414 * The Strangecode Codebase is distributed in the hope that it will be useful, but
    1515 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1616 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
    1717 * details.
    18  * 
     18 *
    1919 * You should have received a copy of the GNU General Public License along with
    2020 * The Strangecode Codebase. If not, see <http://www.gnu.org/licenses/>.
     
    5959        $email = new Email(array(
    6060            'to' => $email_to,
    61             'from' => sprintf('%s <%s>', getFormData('name'), getFormData('email')),
     61            'from' => sprintf('"%s" <%s>', addcslashes(getFormData('name'), '"'), getFormData('email')),
    6262            'subject' => 'Contact form email',
    6363        ));
     
    110110    $fv->notEmpty('name', sprintf(_("%s cannot be blank."), _("Name")));
    111111    $fv->stringLength('name', 0, 255, sprintf(_("%s must be %d-to-%d characters in length."), _("Name"), 0, 255));
    112    
     112
    113113    $fv->notEmpty('email', sprintf(_("%s cannot be blank."), _("Email")));
    114114    $fv->stringLength('email', 0, 255, sprintf(_("%s must be %d-to-%d characters in length."), _("Email"), 0, 255));
    115115    $fv->validateEmail('email');
    116    
     116
    117117    $fv->notEmpty('message', sprintf(_("%s cannot be blank."), _("Message")));
    118118    $fv->stringLength('message', 0, 32000, sprintf(_("%s must be %d-to-%d characters in length."), _("Message"), 0, 32000));
  • trunk/docs/version.txt

    r541 r550  
    1 2.2.0-3
     12.2.0-4
Note: See TracChangeset for help on using the changeset viewer.