Jump to content

Customfields got trimed till '|' vertical bar


HellMind

Recommended Posts

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

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 ? :roll:

 

wouldn't the easiest solution just be to use another character instead of | in the customfield?

Link to comment
Share on other sites

isn't that usually an encrypted file ? :roll:

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

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated