NoSpy Posted September 16, 2018 Share Posted September 16, 2018 Hello, This code is used to convert accented characters not unaccented characters into URLs function formatrewriting($chaine){ $chaine=trim($chaine); $chaine= strtr($chaine,"ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ","aaaaaaaaaaaaooooooooooooeeeeeeeecciiiiiiiiuuuuuuuuynn"); $chaine = preg_replace('/([^.a-z0-9]+)/i', '-', $chaine); return $chaine; } Could you fix this bug by disabling accented characters in URLs if webmaster want ! Link to comment Share on other sites More sharing options...
Dexter_X Posted January 8, 2019 Share Posted January 8, 2019 It seems that depending on the server setup the special characters doesnot work well with IPB. Allow disabling special chars in URLs to administrators may be a good solution. Link to comment Share on other sites More sharing options...
403 - Forbiddeen Posted February 14, 2019 Share Posted February 14, 2019 On 9/16/2018 at 12:41 PM, NoSpy said: Hello, This code is used to convert accented characters not unaccented characters into URLs function formatrewriting($chaine){ $chaine=trim($chaine); $chaine= strtr($chaine,"ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ","aaaaaaaaaaaaooooooooooooeeeeeeeecciiiiiiiiuuuuuuuuynn"); $chaine = preg_replace('/([^.a-z0-9]+)/i', '-', $chaine); return $chaine; } Could you fix this bug by disabling accented characters in URLs if webmaster want ! You can use this plugin: Link to comment Share on other sites More sharing options...
NoSpy Posted February 17, 2019 Author Share Posted February 17, 2019 Thank you I will test this solution until the bug is fixed. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.