|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-06-22 21:30 UTC] hholzgra at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 20 03:00:01 2026 UTC |
rawurlencode() does not convert the '%' character to '%25' althought this character is specified in RFC1738 as unsafe thus it has to be converted to '%25'. This is a serious leak if you use rawurlencode() and rawurldecode(). For example the code snippet $a = rawurlencode("%berg%"); print rawurldecode($a); produces a ?rg% instead of %berg% Since I've been using rawurlencode()/rawurldecode() pairs in many different scripts that work on a lot of different sites I sit on a bomb now because I don't know when the first character string like '%be' or '%12' will be misinterpreted. BTW: How about founding rawurlencode() on the more accurate RFC2396 that on 1738? Bye Martin Kadlec