bugSavane - Bugs: bug #468, Integer format specifier used with...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #468: Integer format specifier used with string argument in `.../include/trackers/format.php'

Submitted by:  Elfyn McBratney <beu>
Submitted on:  Thu 01 Jul 2004 03:06:57 PM UTC  
 
Category: NoneStatus: Fixed
Severity: 1 - WishPriority: C - Normal
Assigned to: . <lorenzo>Open/Closed: Closed
Release: Planned Release: 
Reproducibility: NonePrivacy: Public

Thu 01 Jul 2004 04:42:24 PM UTC, comment #1:
[CONFIRM]

Thanks Elfyn,
I've fixed it in the trunk.

. <lorenzo>In charge of this item.
Thu 01 Jul 2004 03:06:57 PM UTC, original submission:

Hello,

In `.../include/trackers/format.php' (line 237) the format specifier for the file size is an integer (followed by the literal string `KB') when util_filesize() returns a string, thus it's return value is cast to an int resulting in errnous file sizes (e.g., a return value of `25B' gets cast to `25' which gets formatted as `25KB'.

This error is only present in the email notifications - the tracker front-end is fine.

Attached is a patch to fix this.

Elfyn McBratney <beu>

 

Attached Files
file #22:  trackers-format.diff added by beu (488B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by yeupou (Updated the item)
  • -unavailable- added by lorenzo (Updated the item)
  • -unavailable- added by beu (Add moi)
  • -unavailable- added by beu (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 02 Jul 2004 09:48:08 AM UTCyeupouAssigned toNone=>lorenzo
      Open/ClosedOpen=>Closed
    Thu 01 Jul 2004 04:42:24 PM UTClorenzoStatusNone=>Fixed
    Thu 01 Jul 2004 03:45:58 PM UTCbeuCarbon-Copy-=>Added elfyn --DOT-- mcbratney --AT-- gmail --DOT-- com
    Thu 01 Jul 2004 03:06:57 PM UTCbeuAttached File-=>Added trackers-format.diff, #22
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup