Skip to content

Commit

Permalink
Fix encoding of HREFs in responses.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Nov 12, 2013
1 parent d65f7b8 commit 5c7d762
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/Dav/vendor/sabre/dav/lib/Sabre/DAV/URLUtil.php
Expand Up @@ -30,7 +30,7 @@ class URLUtil {
*/
static function encodePath($path) {

return preg_replace_callback('/([^A-Za-z0-9_\-\.~\(\)\/])/',function($match) {
return preg_replace_callback('/([^A-Za-z0-9:_\-\.~\(\)\/])/',function($match) {

return '%'.sprintf('%02x',ord($match[0]));

Expand All @@ -48,7 +48,7 @@ static function encodePath($path) {
*/
static function encodePathSegment($pathSegment) {

return preg_replace_callback('/([^A-Za-z0-9_\-\.~\(\)])/',function($match) {
return preg_replace_callback('/([^A-Za-z0-9:_\-\.~\(\)])/',function($match) {

return '%'.sprintf('%02x',ord($match[0]));

Expand Down

0 comments on commit 5c7d762

Please sign in to comment.