Skip to content

Commit e80d366

Browse files
committed
PR # 62 Update articlescontainer.class.php to allow using numbers at start of tag to be treated still as tag
Thanks for this @jasonabird
2 parents 299c0b7 + 2edf452 commit e80d366

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/components/articles/model/articles/articlescontainer.class.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,10 @@ public function getPostListingCall($placeholderPrefix = '') {
322322
$where = array('class_key' => 'Article');
323323
if (!empty($_REQUEST['arc_author'])) {
324324
$userPk = $this->xpdo->sanitizeString($_REQUEST['arc_author']);
325-
if (intval($userPk) == 0) {
325+
if (function_exists('filter_var')) {
326+
$userPkNum = filter_var($userPk,FILTER_VALIDATE_INT);
327+
} else { $userPkNum = intval($userPk); }
328+
if ($userPkNum == 0) {
326329
/** @var modUser $user */
327330
$user = $this->xpdo->getObject('modUser',array('username' => $userPk));
328331
if ($user) {

0 commit comments

Comments
 (0)