q2a / question2answer

Question2Answer is a free and open source platform for Q&A sites, running on PHP/MySQL.
http://www.question2answer.org/
GNU General Public License v3.0
1.63k stars 627 forks source link

Updates to urlencode() and urldecode() functions #966

Closed pupi1985 closed 1 year ago

pupi1985 commented 1 year ago

It seems there are really small differences between these two functions: https://www.php.net/manual/en/function.rawurlencode.php https://www.php.net/manual/en/function.urlencode.php

I haven't noticed any issue in my tests so far but this will fix issues related to properly (ie. following RFC 3986 rules) encoding URLs (e.g. https://github.com/q2a/question2answer/issues/965)