WebsiteBaker Support (2.13.x) > General Help & Support
PreCheck::sanitizeFilename diacritics
(1/1)
KEnik:
Hi,
PreCheck::sanitizeFilename
Create wrong "link"s
From : Hvězdárna dětem opět od září v programu
Good old/pages/posts/hvezdne-leto-na-moninci-opet-s-hvezdarnou-zebrak-1481.php Wrong New /pages/posts/Hv-zdne-leto-na-Mon-nci-op-t-s-Hv-zd-rnou-ebr-k-1481.php
modules/news/savePost.php:211
--- Code: ---// Work-out what the link should be
$newLink = '/posts/'.PreCheck::sanitizeFilename($title).$oReg->PageSpacer.$iPostId;
--- End code ---
Temporary fixed by old function ( maybe do not work well in all situation!):
--- Code: ---public static function sanitizeFilename($val,$caseSensitive = false,$mPageStyle=null)
{
return page_filename($val);
}
--- End code ---
Can I do pull request If I fix this by editing new function?
dbs:
The "wrong new" looks very bad. There is a fix needed i think.
You can also use in savePost.php the line 38 instead of 39. Is the same solution like yours.
Navigation
[0] Message Index
Go to full version