Ticket #504 (closed Bug: invalid)

Opened 9 months ago

Last modified 9 months ago

url::title wrongly converts 'Š'

Reported by: viforeg Owned by: Geert
Priority: minor Milestone: 2.1.2
Component: Helpers Version: SVN HEAD
Keywords: url::title Cc:

Description

url::title helper wrongly converts 'Š'

This line converts 'Š' to '-'

$title = preg_replace('/[-_\s]+/', $separator, $title);

After that line is

$title = utf8::transliterate_to_ascii($title);

To correct this problem those lines should be swapped or preg_replace should use /u modifier.

Change History

Changed 9 months ago by Shadowhand

  • owner changed from - No owner - to Geert

Changed 9 months ago by Shadowhand

  • version changed from 2.1 Release to SVN HEAD
  • milestone set to 2.1.2

Changed 9 months ago by Geert

  • status changed from new to closed
  • resolution set to invalid

I have no problems whatsoever with the Š character. It converts nicely to S. Are you using the latest svn version of the url helper?

Changed 9 months ago by viforeg

I had problem with url.php version $Id: url.php 1970 2008-02-06 21:54:29Z Shadowhand $

Sorry, my fault, in latest version it is corrected.

Note: See TracTickets for help on using tickets.