Please login or register.

Login with username, password and session length
Advanced search  

News:

You need/want an older version of sNews ? Download an older/unsupported version here.

Author Topic: RC2 view files bug (with fix)  (Read 2604 times)

Hedphuq

  • Newbie
  • *
  • Karma: 0
  • Posts: 6
RC2 view files bug (with fix)
« on: October 13, 2008, 04:16:25 PM »

When trying to view the files in a directory there is a little bug. It will redirect you to "http://examplesnewssite.com/files/" wich does not exsist unless you got a page with a SEF title "files" but obviously that won't be the correct location.
To fix it change:
Code: [Select]
echo '<form method="post" action="files/" enctype="multipart/form-data">';to
Code: [Select]
echo '<form method="post" action="snews_files/" enctype="multipart/form-data">';

Logged
.:Hedphuqed

philmoz

  • High flyer
  • ULTIMATE member
  • ******
  • Karma: 161
  • Posts: 1988
    • fiddle 'n fly
Re: RC2 view files bug (with fix)
« Reply #1 on: October 14, 2008, 09:19:47 PM »

damn... missed that one..
thx for that.

RC2 d/load updated.
« Last Edit: October 15, 2008, 11:40:15 AM by philmoz »
Logged
Of all the things I have lost, it is my mind that I miss the most.

Hedphuq

  • Newbie
  • *
  • Karma: 0
  • Posts: 6
Re: RC2 view files bug (with fix)
« Reply #2 on: October 15, 2008, 01:33:52 PM »

I'm glad I could help.
Logged
.:Hedphuqed