Difference between revisions of "Downloadsvn"

From Noah.org
Jump to navigationJump to search
 
Line 5: Line 5:
 
This allows a web site visitor to download files directly from a Subversion reposiroty. It should give you a download dialog and not try to open the file in the browser.
 
This allows a web site visitor to download files directly from a Subversion reposiroty. It should give you a download dialog and not try to open the file in the browser.
  
This is probably not very secure ;-) Someone can almost certain hack it to download lots of other stuff in your repository.
+
This is probably not very secure ;-) Someone can almost certainly hack it to download lots of other stuff in your repository, so I wouldn't use this on a repository where I store stuff that I want to keep private.
  
 
Click to download: [http://www.noah.org/downloadsvn.php?src=file:///home/svn/src/php/downloadsvn.php downloadsvn.php]
 
Click to download: [http://www.noah.org/downloadsvn.php?src=file:///home/svn/src/php/downloadsvn.php downloadsvn.php]
 
<include svncat src="file:///home/svn/src/php/downloadsvn.php" highlight="php" />
 
<include svncat src="file:///home/svn/src/php/downloadsvn.php" highlight="php" />

Latest revision as of 09:21, 20 August 2008


This allows a web site visitor to download files directly from a Subversion reposiroty. It should give you a download dialog and not try to open the file in the browser.

This is probably not very secure ;-) Someone can almost certainly hack it to download lots of other stuff in your repository, so I wouldn't use this on a repository where I store stuff that I want to keep private.

Click to download: downloadsvn.php <include svncat src="file:///home/svn/src/php/downloadsvn.php" highlight="php" />