Bug #80277 [NEW]: parse_url & parse_str problems with values with percentage
From: nnikolay at gmail dot com
Operating system: Debian 10
PHP version: 7.4.11
Package: *General Issues
Bug Type: Bug
Bug description:parse_url & parse_str problems with values with percentage
Description:
------------
parse_url & parse_str have problems, when in the URL is some value with
percent in the form:
domain.com/?campaignid=%campaignid%&adid=%bannerid%
Then both of them are converting the "%" in some unicode, which breaks
the code:
array(4) {
["scheme"]=>
string(5) "https"
["host"]=>
string(19) "domain"
["path"]=>
string(16) "/path/"
["query"]=>
array(6) {
["campaignid"]=>
string(10) "�mpaignid%"
["adid"]=>
string(8) "�nnerid%"
}
}
--
Edit bug report at https://bugs.php.net/bug.php?id=80277&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80277&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80277&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80277&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80277&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80277&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80277&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80277&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80277&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80277&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80277&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80277&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80277&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80277&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80277&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80277&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80277&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80277&r=mysqlcfg
Thread (13 messages)
- nnikolay at gmail dot com
- cmb@php.netBug #80277 [Opn->Nab]: parse_url & parse_str problems with values with percentage
- nnikolay at gmail dot comBug #80277 [Nab]: parse_url & parse_str problems with values with percentage
- cmb@php.netBug #80277 [Nab->Opn]: parse_url & parse_str problems with values with percentage
- nnikolay at gmail dot comBug #80277 [Com]: parse_url & parse_str problems with values with percentage
- eveg at dbdh dot comBug #80277 [Com]: parse_url & parse_str problems with values with percentage
- nnikolay at gmail dot comBug #80277 [Opn]: parse_url & parse_str problems with values with percentage
- girgias@php.netBug #80277 [Opn->Nab]: parse_url & parse_str problems with values with percentage
- nnikolay at gmail dot comBug #80277 [Nab]: parse_url & parse_str problems with values with percentage
- requinix@php.netBug #80277 [Nab]: parse_url & parse_str problems with values with percentage
- eveg at ldbdh dot comBug #80277 [Com]: parse_url & parse_str problems with values with percentage
- nnikolay at gmail dot comBug #80277 [Com]: parse_url & parse_str problems with values with percentage
- djrhr at rgegez dot comBug #80277 [Com]: parse_url & parse_str problems with values with percentage