Version 4.1.19.4
This commit is contained in:
1 parent
2bd5025018
commit
0dc2aee5ed
312 files changed
+53730
-32118
No files matched your search
@@ -65,6 +65,9 @@ class _LatestNews
|
||||
*/
|
||||
protected function refreshNews()
|
||||
{
|
||||
return NULL;
|
||||
\IPS\Data\Store::i()->ips_news = json_encode( array(
|
||||
'content' => \IPS\Http\Url::ips( 'news' )->request()->get()->decodeJson(),
|
||||
'time' => time()
|
||||
) );
|
||||
}
|
||||
}
|
||||
@@ -88,7 +88,7 @@ class _Ratings
|
||||
{
|
||||
$class = $row['class'];
|
||||
$rated = $class::load( $row['item_id'] );
|
||||
return "<a href='" . $rated->url() . "' target='_blank'>" . $rated->mapped('title') . "</a>";
|
||||
return "<a href='" . $rated->url() . "' target='_blank'>" . htmlspecialchars( $rated->mapped('title'), \IPS\HTMLENTITIES, 'UTF-8', FALSE ) . "</a>";
|
||||
}
|
||||
catch ( \OutOfRangeException $e )
|
||||
{
|
||||
|
||||
@@ -91,7 +91,7 @@ class _ReportComments
|
||||
try
|
||||
{
|
||||
$report = \IPS\core\Reports\Report::load( $row['rid'] );
|
||||
return "<a href='" . $report->url() . "' target='_blank'>" . $report->mapped('title') . "</a>";
|
||||
return "<a href='" . $report->url() . "' target='_blank'>" . htmlspecialchars( $report->mapped('title'), \IPS\HTMLENTITIES, 'UTF-8', FALSE ) . "</a>";
|
||||
}
|
||||
catch( \OutOfRangeException $e )
|
||||
{
|
||||
|
||||
@@ -91,7 +91,7 @@ class _Reports
|
||||
try
|
||||
{
|
||||
$report = \IPS\core\Reports\Report::load( $row['rid'] );
|
||||
return "<a href='" . $report->url() . "' target='_blank'>" . $report->mapped('title') . "</a>";
|
||||
return "<a href='" . $report->url() . "' target='_blank'>" . htmlspecialchars( $report->mapped('title'), \IPS\HTMLENTITIES, 'UTF-8', FALSE ) . "</a>";
|
||||
}
|
||||
catch( \OutOfRangeException $e )
|
||||
{
|
||||
|
||||
@@ -91,7 +91,7 @@ class _Votes
|
||||
try
|
||||
{
|
||||
$poll = \IPS\Poll::load( $val );
|
||||
return $poll->poll_question;
|
||||
return htmlspecialchars( $poll->poll_question, \IPS\HTMLENTITIES, 'UTF-8', FALSE );
|
||||
}
|
||||
catch ( \OutOfRangeException $e )
|
||||
{
|
||||
|
||||
@@ -58,7 +58,7 @@ class _RecountMemberContent
|
||||
*/
|
||||
public function run( &$data, $offset )
|
||||
{
|
||||
$last = 0;
|
||||
$last = null;
|
||||
|
||||
/* Loop over members to fix them */
|
||||
foreach( \IPS\Db::i()->select( '*', 'core_members', array( 'member_id > ?', $offset ), 'member_id ASC', array( 0, $this->rebuild ) ) as $member )
|
||||
|
||||
@@ -255,6 +255,11 @@ class _Content extends \IPS\Content\ExtensionGenerator
|
||||
$idColumn = $class::$databaseColumnId;
|
||||
foreach ( $class::getItemsWithPermission( $where, $class::$databasePrefix . $class::$databaseColumnId .' ASC', $limitClause, 'read', \IPS\Content\Hideable::FILTER_PUBLIC_ONLY, \IPS\Content\Item::SELECT_IDS_FIRST, new \IPS\Member, TRUE ) as $item )
|
||||
{
|
||||
if( !$item->canView( new \IPS\Member ) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$data = array( 'url' => $item->url() );
|
||||
$priority = ( $item->sitemapPriority() ?: ( intval( isset( $settings["sitemap_{$class::$title}_priority"] ) ? $settings["sitemap_{$class::$title}_priority"] : self::RECOMMENDED_ITEM_PRIORITY ) ) );
|
||||
if ( $priority !== -1 )
|
||||
|
||||
Reference in new issue
Block a user