NetTalk Central

Author Topic: Page name on error?  (Read 3363 times)

Rhys Daniell

  • Newbie
  • *
  • Posts: 34
    • View Profile
Page name on error?
« on: August 01, 2007, 04:58:24 PM »
Is there a method/function which can return the current page name in the WebServer MakeErrorPage proc? I'm getting an error 404 (page not found) and have no idea what the page name is.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11179
    • View Profile
Re: Page name on error?
« Reply #1 on: August 01, 2007, 10:56:08 PM »
Hi Rhys,

The best way to see what's being requested is to look at the Web Server window itself.

You can create your own Error window if you like (including extra information) - see the example ErrorPage (32).

However displaying the name of the Page that triggered the error is strongly discouraged. If you include the name then people can "spoof" your site using a technique called cross-site scripting. See here (http://en.wikipedia.org/wiki/Cross_site_scripting) for more details on that.

Cheers
Bruce