Changeset 401 for branches/1.1dev/lib


Ignore:
Timestamp:
Aug 8, 2012 6:57:42 PM (12 years ago)
Author:
anonymous
Message:

Ended use of urlEncodeArray in printHiddenSession

Location:
branches/1.1dev/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1dev/lib/App.inc.php

    r308 r401  
    426426    if ($do_carry_queries) {
    427427        // Join the perm and temp carry_queries and filter out the _carry_queries_init element for the final query args.
    428         $query_args = array_diff_assoc(urlEncodeArray(array_merge($carry_queries, $one_time_carry_queries)), array('_carry_queries_init' => true));
     428        $query_args = array_diff_assoc(array_merge($carry_queries, $one_time_carry_queries), array('_carry_queries_init' => true));
    429429        foreach ($query_args as $key=>$val) {
    430430            echo '<input type="hidden" name="' . $key . '" value="' . $val . '" />';
  • branches/1.1dev/lib/Utilities.inc.php

    r265 r401  
    321321 * Converts a PHP Array into encoded URL arguments and return them as an array.
    322322 *
    323  * @param  mixed $data        An array to transverse recursivly, or a string
     323 * @param  mixed $data        An array to transverse recursively, or a string
    324324 *                            to use directly to create url arguments.
    325325 * @param  string $prefix     The name of the first dimension of the array.
     
    335335    if (is_array($data)) {
    336336        foreach ($data as $key => $val) {
    337             // If the prefix is empty, use the $key as the name of the first dimention of the "array".
    338             // ...otherwise, append the key as a new dimention of the "array".
     337            // If the prefix is empty, use the $key as the name of the first dimension of the "array".
     338            // ...otherwise, append the key as a new dimension of the "array".
    339339            $new_prefix = ('' == $prefix) ? urlencode($key) : $prefix . '[' . urlencode($key) . ']';
    340340            // Enter recursion.
     
    342342        }
    343343    } else {
    344         // We've come to the last dimention of the array, save the "array" and it's value.
     344        // We've come to the last dimension of the array, save the "array" and it's value.
    345345        $args[$prefix] = urlencode($data);
    346346    }
     
    358358 * Converts a PHP Array into encoded URL arguments and return them in a string.
    359359 *
    360  * @param  mixed $data        An array to transverse recursivly, or a string
     360 * @param  mixed $data        An array to transverse recursively, or a string
    361361 *                            to use directly to create url arguments.
    362  * @param  string $prefix     The name of the first dimention of the array.
     362 * @param  string $prefix     The name of the first dimension of the array.
    363363 *                            If not specified, the first keys of the array will be used.
    364364 *
     
    516516/**
    517517 * If magic_quotes_gpc is in use, run stripslashes() on $var. If $var is an
    518  * array, stripslashes is run on each value, recursivly, and the stripped
     518 * array, stripslashes is run on each value, recursively, and the stripped
    519519 * array is returned
    520520 *
Note: See TracChangeset for help on using the changeset viewer.