Moderator: Moderators

$this->RegEx['url_find'] = array('`&([a-z]+)(acute|grave|circ|cedil|tilde|uml|lig|ring|caron|slash);`i', '`&(amp;)?[^;]+;`i', '`[^a-z0-9]`i');$this->RegEx['url_find'] = array('`&([a-zа-я]+)(acute|grave|circ|cedil|tilde|uml|lig|ring|caron|slash);`i', '`&(amp;)?[^;]+;`i', '`[^a-zа-я0-9]`i'); function seo_url_encode( $url ) {
// can be faster to return $url directly if you do not allow more chars than
// [a-zA-Z0-9_\.-] in your usernames
// return $url;
// Here we handle the "&", "/", "+" and "#" case proper ( http://www.php.net/urlencode => http://issues.apache.org/bugzilla/show_bug.cgi?id=34602 )
static $find = array('&', '/', '#', '+');
static $replace = array('%26', '%2F', '%23', '%2b');
return rawurlencode(str_replace( $find, $replace, utf8_normalize_nfc(htmlspecialchars_decode(str_replace('&', '%26', rawurldecode($url))))));
} $this->RegEx['url_find'] = array('`&([a-z\x7f-\xff]+)(acute|grave|circ|cedil|tilde|uml|lig|ring|caron|slash);`i', '`&(amp;)?[^;]+;`i', '`[^a-z\x7f-\xff0-9]`i');Users browsing this forum: No registered users and 8 guests