Uploaded image for project: 'PHP_NETCURL'
  1. PHP_NETCURL
  2. NETCURL-319

setSignature may crash setUserAgent if array is sent into merger

    XMLWordPrintable

Details

    • Bug
    • Status: Done (View Workflow)
    • Medium
    • Resolution: Done
    • netcurl-6.1.0, netcurl-6.1.1, netcurl-6.1.2
    • netcurl-6.1.3
    • None
    • None
    • netcurl-6.1.3

    Description

      Not working:

      $uAgent = [
      sprintf('NETCURL-%s', (new NetWrapper())->getVersion()),
      ]
      WrapperConfig::setSignature($uAgent); 

      Working:

      $uAgent = [ sprintf('NETCURL-%s', (new NetWrapper())->getVersion()), ] 
      WrapperConfig::setSignature(implode('/', $uAgent)); 

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            Tornevall Tomas Tornevall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration