Welcome, Guest. Please Login or Register.
July 10, 2025, 07:00:12 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  suppresion of paths in errors « previous next »
Pages: [1] Reply Ignore Print
Author Topic: suppresion of paths in errors  (Read 356 times)
splungent
Noobie
*
Posts: 14


I'm a splungeye!

suppresion of paths in errors
« on: May 07, 2003, 01:25:53 AM »
Reply with quote

Hello,
        First of I apologize as I have seen this answered somewhere on the board.  I have been searching for a while and can't find it.  I would like to know how to not have my server paths show up if there should be an error in handling the code for the board.  If someone remembers where it was posted I would appreciate it.
Logged
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:suppresion of paths in errors
« Reply #1 on: May 07, 2003, 01:32:15 AM »
Reply with quote

The path in the error isn't really confidental information. :P

Anyway, check Errors.php and index.php to find/remove the urls from the error message... although be warned it might no longer tell you which file the error is in.
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:suppresion of paths in errors
« Reply #2 on: May 07, 2003, 03:04:34 AM »
Reply with quote

Okay, it's simply done.

Find the error handler at the bottom of index.php.  It is passed the message.

Do something like this:

$message = str_replace($boarddir, 'board dir', $message);

-[Unknown]
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  suppresion of paths in errors « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.108 seconds with 21 queries.