FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=18694&edit=1

ID: 18694
Updated by: daniel.oconnor@gmail.com
Reported By: RalfBecker at outdoor-training dot de
Summary: Filesystem.php GetDir wrongly encoded filesnames
containing single quotes
-Status: Open
+Status: Closed
Type: Bug
Package: HTTP_WebDAV_Server
Operating System: irrelevant
Package Version: 1.0.0RC6
PHP Version: Irrelevant
-Assigned To:
+Assigned To: doconnor
Roadmap Versions:
New Comment:

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: doconnor
This bug has been fixed in SVN.

If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should
be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.

Thanks Ralf; fixed in r313956.


Previous Comments:
------------------------------------------------------------------------

[2011-07-29 14:43:09] ralfbecker

Description:
------------
htmlspecialchars($name) does NOT encode single quotes (')
unless ENT_QUOTE is set, which is not in
Server/Filesystem.php on line 483, therefore you can not use
single quotes in a href.

Following patch fixes it:

--- Server/Filesystem.php (Revision 35842)
+++ Server/Filesystem.php (Arbeitskopie)
@@ -484,7 +484,7 @@
$name = htmlspecialchars($filename);
printf($format,
number_format(filesize($fullpath)),
strftime("%Y-%m-%d %H:%M:%S",
filemtime($fullpath)),
- "<a href='$name'>$name</a>");
+ '<a href="'.$name.'">'.$name.'</a>');
}
}

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJul 30, '11 at 9:21a
activeJul 30, '11 at 9:21a
posts1
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 1 post

People

Translate

site design / logo © 2022 Grokbase