Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
fix for fc_clean_permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
patkon committed Oct 12, 2021
1 parent e64999d commit a2688ab
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions acp/core/functions.php
Expand Up @@ -386,13 +386,14 @@ function fc_return_clean_value($string) {
}

function fc_clean_permalink($str) {

$str = stripslashes($str);
$str = strip_tags($str);
$str = strtolower($str);
$a = array('ä','ö','ü','ß',' + ','//','(',')',';','\'','\\');
$b = array('ae','oe','ue','ss','-'.'/','','','','','');
$a = array('ä','ö','ü','ß',' + ','//','(',')',';','\'','\\','.','`','<','>');
$b = array('ae','oe','ue','ss','-'.'/','','','','','','','','','');
$str = str_replace($a, $b, $str);
$str = preg_replace('/\s/s', '_', $str); // replace blanks -> '_'
$string = htmlentities($string);
$str = htmlentities($str, ENT_QUOTES, "UTF-8");
$str = trim($str);

return $str;
Expand Down

0 comments on commit a2688ab

Please sign in to comment.