From 904730d1782749bfac15b0344fe5782433f3099b Mon Sep 17 00:00:00 2001 From: paul Date: Fri, 28 Feb 2014 23:54:53 +0000 Subject: [PATCH] prevent endless loop on malformed svn path svn path=/trunk/; revision=53 --- Subversion.page | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Subversion.page b/Subversion.page index 2d8d794..93b5529 100755 --- a/Subversion.page +++ b/Subversion.page @@ -11,10 +11,10 @@ cat <

Path:

[root] - $(tmp=$url - until [ -z "$tmp" -o "$tmp" = // ]; do + $(tmp="$url" + until [ -z "$tmp" -o "$tmp" = '//' -o "$tmp" = './' ]; do echo "/$(basename "$tmp") " - tmp=$(dirname "$tmp")/ + tmp="$(dirname "$tmp")/" done |tac)

Revisions:

-- 2.39.2