AntonLV пре 4 година
родитељ
комит
e43b01914d

+ 4 - 4
modules/boonex/timeline/classes/BxTimelineConfig.php

@@ -456,17 +456,17 @@ class BxTimelineConfig extends BxBaseModNotificationsConfig
 
         $aAddons = array();
         if(!empty($aParams['name']))
-            $aAddons[] = $aParams['name'];
+            $aAddons[] = bx_process_output($aParams['name']);
         else {
             if($bWithView && !empty($aParams['view']))
-                $aAddons[] = $aParams['view'];
+                $aAddons[] = bx_process_output($aParams['view']);
 
             if($bWithType && !empty($aParams['type']))
-                $aAddons[] = $aParams['type'];
+                $aAddons[] = bx_process_output($aParams['type']);
         }
 
         if($bWithOwner)
-            $aAddons[] = $aParams['owner_id'];
+            $aAddons[] = (int)$aParams['owner_id'];
 
         return !empty($aAddons) ? implode($sGlue, $aAddons) : '';
     }

+ 4 - 4
modules/boonex/timeline/classes/BxTimelineModule.php

@@ -513,10 +513,10 @@ class BxTimelineModule extends BxBaseModNotificationsModule implements iBxDolCon
         */
 
         $aResult = array(
-            'id' => $aEvent['id'],
-            'name' => $aParams['name'],
-            'view' => $aParams['view'],
-            'type' => $aParams['type'],
+            'id' => (int)$aEvent['id'],
+            'name' => bx_process_output($aParams['name']),
+            'view' => bx_process_output($aParams['view']),
+            'type' => bx_process_output($aParams['type']),
             'item' => $this->_oTemplate->getPost($aEvent, $aParams),
             'eval' => $sJsObject . "._onGetPost(oData)"
         );

+ 5 - 5
modules/boonex/timeline/classes/BxTimelineTemplate.php

@@ -2048,7 +2048,7 @@ class BxTimelineTemplate extends BxBaseModNotificationsTemplate
         $oMenu = BxDolMenu::getObjectInstance($this->_oConfig->getObject('menu_item_actions_all'));
         if($oMenu)
             return array();
-        
+
         $oMenu = BxDolMenu::getObjectInstance($this->_oConfig->getObject('menu_item_manage'));
         if(!$oMenu)
             return array();
@@ -2060,10 +2060,10 @@ class BxTimelineTemplate extends BxBaseModNotificationsTemplate
 
         $sOnclick = "bx_menu_popup('bx_timeline_menu_item_manage', this, {'id':'bx_timeline_menu_item_manage_{content_id}'}, {content_id:{content_id}, name:'{name}', view:'{view}', type:'{type}'});";
         $sOnclick = bx_replace_markers($sOnclick, array(
-            'content_id' => $aEvent['id'],            
-            'view' => $aBrowseParams['view'],
-            'type' => $aBrowseParams['type'],
-            'name' => $aBrowseParams['name'],
+            'content_id' => (int)$aEvent['id'],            
+            'view' => bx_process_output($aBrowseParams['view']),
+            'type' => bx_process_output($aBrowseParams['type']),
+            'name' => bx_process_output($aBrowseParams['name']),
         ));
 
         return array(