Jump to content


Details.php



  • Please log in to reply
4 replies to this topic

#1 ONLINE   Subzero

Subzero

    Addicted Member

  • Jr. Admin
  • PipPipPipPipPip
  • 456 posts
  • Joined 2 Years, 2 Months and 7 Days
  • LocationCode Land

Posted 05 September 2010 - 13:26

Change

print("<a class='main' href='download.php/$id/" . htmlspecialchars($row["filename"]) . "'><img src='pic/download1.png' border='0' alt='Download' /></a>");

to

print("<td align=\"center\"><a href='download.php/$id/" . rawurlencode($row["filename"]) . "'><img src='pic/download1.png' border='0' alt='Download' /></a>");

Download wasnt working on my test site this will fix that

#2 OFFLINE   Krypto

Krypto

    Project Leader

  • Administrators
  • PipPipPipPipPip
  • 1,580 posts
  • Joined 2 Years, 2 Months and 9 Days

Posted 05 September 2010 - 20:22

Wonder if it's server dependent? As it works on my XP & Linux setup.

Also this would look better:-

print("<a class='main' href='download.php/$id/" . rawurlencode($row["filename"]) . "'><img src='pic/download1.png' border='0' alt='Download' /></a>");

As using that <td> screws the page up.

#3 ONLINE   Subzero

Subzero

    Addicted Member

  • Jr. Admin
  • PipPipPipPipPip
  • 456 posts
  • Joined 2 Years, 2 Months and 7 Days
  • LocationCode Land

Posted 05 September 2010 - 23:38

Was only posting what worked for me mate.......did it on my local aswell.

#4 OFFLINE   Krypto

Krypto

    Project Leader

  • Administrators
  • PipPipPipPipPip
  • 1,580 posts
  • Joined 2 Years, 2 Months and 9 Days

Posted 06 September 2010 - 07:45

I was not critisising, it's just intriguing how it behaves on different setups. Look at the fun we had with the Reputation System.

#5 ONLINE   Subzero

Subzero

    Addicted Member

  • Jr. Admin
  • PipPipPipPipPip
  • 456 posts
  • Joined 2 Years, 2 Months and 7 Days
  • LocationCode Land

Posted 06 September 2010 - 15:18

Was not implying you was :-) and yes that was fun but also enlightening :)





Also tagged with

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users