ports/146379: [patch] port devel/viewvc , viewvc bug_id:454

olli hauer ohauer at gmx.de
Fri May 7 16:50:05 UTC 2010


>Number:         146379
>Category:       ports
>Synopsis:       [patch] port devel/viewvc , viewvc bug_id:454
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 07 16:50:04 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     olli hauer <ohauer at gmx.de>
>Release:        
>Organization:
>Environment:


>Description:
ViewVC generates a Python AttributeError exception for certain
URLs related to "view=log" and "pathrev=nnn"

see: http://viewvc.tigris.org/issues/show_bug.cgi?id=454



>How-To-Repeat:
>Fix:
--- patch_viewvc.txt begins here ---
Index: Makefile
===================================================================
--- Makefile	2010-05-05 23:52:20.000000000 +0200
+++ Makefile	2010-05-07 18:39:46.000000000 +0200
@@ -7,7 +7,7 @@
 
 PORTNAME=	viewvc
 PORTVERSION=	1.1.5
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel python
 MASTER_SITES=	http://viewvc.tigris.org/files/documents/3330/47458/ \
   LOCAL/pgollucci
Index: files/patch-lib__sapi.py
===================================================================
--- files/patch-lib__sapi.py
+++ files/patch-lib__sapi.py
@@ -0,0 +1,10 @@
+--- ./lib/sapi.py.orig	2010-03-29 17:32:43.000000000 +0200
++++ ./lib/sapi.py	2010-05-07 18:36:29.000000000 +0200
+@@ -33,6 +33,7 @@
+ # that character as-is, and sometimes needs to embed escaped values
+ # into HTML attributes.
+ def escape(s):
++  s = str(s)
+   s = string.replace(s, '&', '&')
+   s = string.replace(s, '>', '>')
+   s = string.replace(s, '<', '<')
--- patch_viewvc.txt ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list