Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th February 2009, 19:14
willybald willybald is offline
Junior Member
 
Join Date: Feb 2009
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
 
Default [Uebimiau] Bugfix: problem with attachment names

To get rid of the problem which is shown in the attached picture, that on some server uebimiau doesnt show file names of attachments you have to do the following:

- go to your uebimiau directory
- open inc/class.uebimiau.php
- somewhere around line 567 you will find
PHP Code:
$filename substr($filename,-100
this is the critical part... the intention of the author is to truncate file names longer than 100 chars, the minus means starting at the end.

in fact there are php versions where this works well ( i didnt investigate which ones) but on others the filename becomes empty, because the starting point is out of bounds.

the solution is to build a condition around:
PHP Code:
if (strlen($filename) > 100)
{
$filename substr($filename,-100)

for now this fix only truncate file names if it exceeds 100 chars, otherwise leave it untouched

hope this helps,
cheers
Attached Images
 
Reply With Quote
The Following User Says Thank You to willybald For This Useful Post:
falko (26th February 2009)
Sponsored Links
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 18:58
Strange email problem for one of my domains... any help appreciated paulrobert_a Installation/Configuration 5 9th August 2010 15:15
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 13:20
squirrelmail attachment problem lan5 Server Operation 1 23rd July 2006 23:57
Postfix+MySQL Problem jasutton Installation/Configuration 1 15th June 2006 17:06


All times are GMT +2. The time now is 17:13.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.