[Customisation Database Commits] r720 - /trunk/titania/includes/core/url.php

Nathan Guse exreaction at phpbb.com
Wed Mar 10 04:11:34 GMT 2010


Author: exreaction
Date: Wed Mar 10 04:11:34 2010
New Revision: 720

Log:
that was in the wrong function :/

Modified:
    trunk/titania/includes/core/url.php

Modified: trunk/titania/includes/core/url.php
==============================================================================
*** trunk/titania/includes/core/url.php (original)
--- trunk/titania/includes/core/url.php Wed Mar 10 04:11:34 2010
***************
*** 253,258 ****
--- 253,262 ----
  		// Replace any number of spaces with a single underscore
  		$string = preg_replace('#[\s]+#', '_', $string);
  
+ 		// Replace a few ugly things
+ 		$match = array('[', ']');
+ 		$url = str_replace($match, '', $url);
+ 
  		return utf8_clean_string(utf8_strtolower($string));
  	}
  
***************
*** 267,273 ****
  	*/
  	public static function url_replace($url, $urlencode = true)
  	{
! 		$match = array('[', ']', '+', '#', '?', '/', '\\', '\'', '&', '<', '>', '"', ':', self::$separator);
  		$url = str_replace($match, '', $url);
  
  		return ($urlencode) ? urlencode($url) : $url;
--- 271,277 ----
  	*/
  	public static function url_replace($url, $urlencode = true)
  	{
! 		$match = array('+', '#', '?', '/', '\\', '\'', '&', '<', '>', '"', ':', self::$separator);
  		$url = str_replace($match, '', $url);
  
  		return ($urlencode) ? urlencode($url) : $url;




More information about the customisationdb-commits mailing list