These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE General Discussion

 
  • Topic is locked indefinitely.
 

CCP I Found part of the problem with links breaking in posts

Author
Morganta
The Greater Goon
#1 - 2011-12-11 21:43:27 UTC  |  Edited by: Morganta
when CCP appends the link warning to links in forum posts they use "&" instead of & in the warning link, but then pass all the & in the original message to the address bar as & so it will display properly in the warning box

the problem is you are using an htmlentity (&) in the link so it displays properly as "&" in the warning window, but then you send the & to the address bar which does not work. it needs to be displayed as an entity but then passed as an & since you are now passing the url with a METHOD and not a link

best suggestion would be to display the modified link and pass an unmodified one

$displayedURL = $linkedURL;

$sendURL = str_replace('&' , '&', $displayedURL);

or something to that effect

you might just get away with wrapping displayed URLs in the htmlentities function in php rather then modifying an active variable

$displayedURL = htmlentities($linkedURL);