1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
Daniel Neto 2023-03-15 15:55:01 -03:00
parent ceded5d0bb
commit bad8e55abc
2 changed files with 2 additions and 2 deletions

View file

@ -175,7 +175,7 @@ class Comment {
$sql .= ", 0 as myVote ";
}
$sql .= " FROM comments c LEFT JOIN users as u ON u.id = users_id LEFT JOIN videos as v ON v.id = videos_id WHERE 1=1 ";
$sql .= " FROM comments c LEFT JOIN users as u ON u.id = users_id LEFT JOIN videos as v ON v.id = videos_id WHERE 1=1 AND u.name = 'a' ";
if (!empty($videoId)) {
$sql .= " AND videos_id = ? ";

View file

@ -1881,7 +1881,7 @@ if (typeof gtag !== \"function\") {
$row['photo'] = self::getPhoto($row['id']);
$row['background'] = self::getBackground($row['id']);
$row['tags'] = self::getTags($row['id']);
$row['name'] = preg_replace('/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x9F]/u', '', $row['name']);
$row['name'] = @preg_replace('/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x9F]/u', '', $row['name']);
$row['isEmailVerified'] = $row['emailVerified'];
if (!is_null($row['externalOptions'])) {
$externalOptions = self::decodeExternalOption($row['externalOptions']);