Conflicts:
CRM/Contact/Page/ImageFile.php
CRM/Contribute/Form/SoftCredit.php
CRM/Event/Form/ManageEvent/Registration.php
*
*/
class CRM_Contact_Page_ImageFile extends CRM_Core_Page {
-
+ /**
+ * @var int Time to live (seconds).
+ *
+ * 12 hours: 12 * 60 * 60 = 43200
+ */
+ private $ttl = 43200;
+
- function run() {
+ public function run() {
if (!preg_match('/^[^\/]+\.(jpg|jpeg|png|gif)$/i', $_GET['photo'])) {
CRM_Core_Error::fatal('Malformed photo name');
}
*
* @param $profileIds
* @param int $rgId
- * @return boolean
+ * @return bool
*/
-
public static function canProfilesDedupe($profileIds, $rgId = 0) {
--
// find the unsupervised rule
--
$rgParams = array(
'used' => 'Unsupervised',
'contact_type' => 'Individual',