Bug 114238

Summary: web site 404 page go back url error
Product: Documentation Reporter: c_O <bsd>
Component: Books & ArticlesAssignee: Wolfram Schneider <wosch>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description c_O 2007-07-03 13:50:06 UTC
When you open a link page not exist on freebsd website,it will bring you to a "Document not found page".

in this page the "You are coming from"(when you want to go back) url will not bring you back.

Fix: 

in www/en/cgi/missing_handler.cgi line 78,some characters in $http_referer_url has been replaced.

replace <a href="$http_referer_url">$http_referer</a>. to  <a href="$http_referer">$http_referer</a>. in line 97 will fix this problem.
How-To-Repeat: 1) open http://www.freebsd.org/releases/7.0R/approvals.html,

2) click "FreeBSD 7.0 developer todo list"(the page which is not exist right now).

3)click "You are coming from    http://www.freebsd.org/releases/7.0R/approvals.html" in Document not found page it will bring you to http://www%2efreebsd%2eorg/releases/7.0R/approvals%2ehtml (the page will not be displayed)
Comment 1 c_O 2007-07-03 14:28:45 UTC
i tested seems it only effect firefox?
Comment 2 Remko Lodder freebsd_committer freebsd_triage 2007-07-05 07:04:27 UTC
Responsible Changed
From-To: freebsd-www->wosch

Hi there, 

Can you please have a look at this? You wrote the missing_handler 
script and I dont really understand why this happends (the escape 
functions that are being used dont encode the dot character as far 
as I can see; but in the results that happends. in addittion as the 
submitter mentions; this only happends when we call the escape2 
routine). 

Thanks in advance!
Comment 3 c_O 2007-07-08 02:48:23 UTC
i think escape2 doesn't effect this.
78: =24http_referer_url =3D=7E =
s/(=5B=5Ea-zA-Z0-9;=5C/?:&=3D=5D)/sprintf(=22%%%02x=22,ord(=241))/eg;

i think in this line something have been replaced

just replace =24http_referer_url with =24http_referer in line 97 should =
fix this

XD
Comment 4 Wolfram Schneider freebsd_committer freebsd_triage 2007-07-08 13:28:16 UTC
State Changed
From-To: open->closed

Fixed. Thanks for the note!
Comment 5 dfilter service freebsd_committer freebsd_triage 2007-07-08 13:28:16 UTC
wosch       2007-07-08 12:28:11 UTC

  FreeBSD doc repository

  Modified files:
    en/cgi               missing_handler.cgi 
  Log:
  fix character encoding in referer link
  
  PR: www/114238
  
  Revision  Changes    Path
  1.19      +3 -3      www/en/cgi/missing_handler.cgi
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"