Ignore:
Timestamp:
Dec 11, 2010, 8:50:05 PM (13 years ago)
Author:
patdenice
Message:

feature 2057: fetchRemote can send POST data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_url.inc.php

    r6411 r8079  
    9090 * @return string
    9191 */
    92 function add_url_params($url, $params)
     92function add_url_params($url, $params, $arg_separator='&' )
    9393{
    9494  if ( !empty($params) )
     
    101101      {
    102102        $is_first = false;
    103         $url .= ( strpos($url, '?')===false ) ? '?' :'&';
     103        $url .= ( strpos($url, '?')===false ) ? '?' : $arg_separator;
    104104      }
    105105      else
    106106      {
    107         $url .= '&';
     107        $url .= $arg_separator;
    108108      }
    109109      $url .= $param;
Note: See TracChangeset for help on using the changeset viewer.