Permalink
Browse files

Update smb4php/smb.php

fix handling of paths containing "+"
  • Loading branch information...
denis-b committed Oct 29, 2012
1 parent 65fce10 commit fcdbb345c99652ccc8e33d4cc0c1a056c90bdd5d
Showing with 1 addition and 1 deletion.
  1. +1 −1 smb4php/smb.php
View
@@ -45,7 +45,7 @@ function parse_url ($url) {
if (! isset($pu[$i])) $pu[$i] = '';
if (count ($userdomain = explode (';', urldecode ($pu['user']))) > 1)
@list ($pu['domain'], $pu['user']) = $userdomain;
- $path = preg_replace (array ('/^\//', '/\/$/'), '', urldecode ($pu['path']));
+ $path = preg_replace (array ('/^\//', '/\/$/'), '', rawurldecode ($pu['path']));
list ($pu['share'], $pu['path']) = (preg_match ('/^([^\/]+)\/(.*)/', $path, $regs))
? array ($regs[1], preg_replace ('/\//', '\\', $regs[2]))
: array ($path, '');

0 comments on commit fcdbb34

Please sign in to comment.