Hi David,
Thanks for your reply. I've forked the code as you suggested and commited my new code.
https://github.com/nrhorner/moodle-mod_booking.git
I think I've narrowed down the problem a bit.
/booking/lib.php around line 67
//[1]
$booking->postcode = $booking->postcode['text'];
$booking->streetnum = $booking->streetnum['text'];
//[2]
$backtrace = debug_backtrace();
print_r( $backtrace ); die;
The copying out of the text results in the truncation, as the backtrace shows intact strings when placed at pos [1], but trucated at [2]. Strings are intact at [2] if I use $booking->postcode = $booking->postcode; instead.
However this does not solve the problem, as the output from view.php is still truncated.
Cheers,
Neil