HellMind Posted November 11, 2014 Share Posted November 11, 2014 I want to store a large data in a customfield. Its well stored, but when I show it within a function using $params I see its trunked at the post of the | char. How can I store something that got '|'? I found this code: on includes/customfieldfunctions.php if (( $fieldtype != "link" && strpos( $customfieldval, "|" ) )) { $customfieldval = explode( "|", $customfieldval ); $customfieldval = trim( $customfieldval[1] ); } Why this needs to be done? How should I scape that '|' ? Link to comment Share on other sites More sharing options...
brian! Posted November 12, 2014 Share Posted November 12, 2014 I want to store a large data in a customfield.Its well stored, but when I show it within a function using $params I see its trunked at the post of the | char. How can I store something that got '|'? I found this code: on includes/customfieldfunctions.php isn't that usually an encrypted file ? wouldn't the easiest solution just be to use another character instead of | in the customfield? Link to comment Share on other sites More sharing options...
sentq Posted November 12, 2014 Share Posted November 12, 2014 isn't that usually an encrypted file ? exactly!! i quickly jumped to check it and found it encrypted (as expected) you need to use another character, and use character that unique or your client will not use it to avoid any issues, maybe something like "-sep-" Link to comment Share on other sites More sharing options...
Infopro Posted November 13, 2014 Share Posted November 13, 2014 And this user is running an unlicensed version of WHMCS. Thread closed. He can open a ticket about my actions here if he chooses to. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts