handle escaped file chars in display and search

This commit is contained in:
friendica 2012-03-31 15:25:17 -07:00
parent 7581b32bb3
commit 53f799f2bc
5 changed files with 10 additions and 13 deletions

View file

@ -87,7 +87,7 @@ function fileas_widget($baseurl,$selected = '') {
$cnt = preg_match_all('/\[(.*?)\]/',$saved,$matches,PREG_SET_ORDER);
if($cnt) {
foreach($matches as $mtch) {
$unescaped = file_tag_decode($mtch[1]);
$unescaped = xmlify(file_tag_decode($mtch[1]));
$terms[] = array('name' => $unescaped,'selected' => (($selected == $unescaped) ? 'selected' : ''));
}
}