I found an issue that was caused by a link to an article I have, when it was called from a Facebook link. Facebook adds click ID’s to it’s shared links, but the Input.php _clean_input_keys function does not like the ? at the beginning of the GET parameter. I’m guessing this would also be a problem if you were using the GET method for any reason as well? I modified the Input.php from:
if ( ! preg_match("/^[a-z0-9:_\/ \-".EMOJI_REGEX."]+$/iu", $str))
to:
if ( ! preg_match("/^[a-z0-9:_\/ \-?".EMOJI_REGEX."]+$/iu", $str))
This is an example of the URL that Facebook links to: http://www.mysite.com/news/some-article?fbclid=IwAR3rqfixHrmY4cEdraGshLsctsKdHv1oUyj9nhdWsSw7DDE6y38ZNVcTT_w
I’m running EE 5.2.1 on Nginx
Ok, so do you see what that’s doing to your URL? You’ve essentially got two query strings. https://example.com/index.php?/news/some-article?fbclid=...
You might be able to rewrite the incoming query string to use &
? Worth noting though that this will soon be a moot point.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.