X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fphotos.php;h=4d756583159bb4ea72102bb80a8ce33647bf02e4;hb=ab77f48b8b4966dc96c97215b4781d9fb32e61a7;hp=1b8d5069f84e6c873186c59be406b482ad4cb5f6;hpb=f99d37d87e1f3a6a18dede9f56cd8e86d25f8aa7;p=friendica.git diff --git a/mod/photos.php b/mod/photos.php index 1b8d5069f8..4d75658315 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -204,7 +204,7 @@ function photos_post(App $a) } // RENAME photo album - $newalbum = Strings::escapeTags(trim($_POST['albumname'])); + $newalbum = trim($_POST['albumname'] ?? ''); if ($newalbum != $album) { Photo::update(['album' => $newalbum], ['album' => $album, 'uid' => $page_owner_uid]); // Update the photo albums cache @@ -1432,7 +1432,7 @@ function photos_content(App $a) ]; $title_e = $item['title']; - $body_e = BBCode::convert($item['body']); + $body_e = BBCode::convertForUriId($item['uri-id'], $item['body']); $comments .= Renderer::replaceMacros($template,[ '$id' => $item['id'],