[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_3_1-13772-gdb84b20
Michal Čihař
nijel at users.sourceforge.net
Tue Aug 9 08:54:44 CEST 2011
The branch, master has been updated
via db84b2005243f66934d8ae10d9459022e17f46de (commit)
from c54b04037dbf8920733cc9fffee4fe585310a1ae (commit)
- Log -----------------------------------------------------------------
commit db84b2005243f66934d8ae10d9459022e17f46de
Author: Michal Čihař <michal at cihar.com>
Date: Tue Aug 9 08:53:56 2011 +0200
Explain reason for escaping # after digging in git history
-----------------------------------------------------------------------
Summary of changes:
libraries/js_escape.lib.php | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/libraries/js_escape.lib.php b/libraries/js_escape.lib.php
index 25b832f..656794f 100644
--- a/libraries/js_escape.lib.php
+++ b/libraries/js_escape.lib.php
@@ -25,9 +25,8 @@ function PMA_jsFormat($a_string = '', $add_backquotes = true)
if (is_string($a_string)) {
$a_string = htmlspecialchars($a_string);
$a_string = PMA_escapeJsString($a_string);
- /**
- * @todo what is this good for?
- */
+ // Needed for inline javascript to prevent some browsers
+ // treating it as a anchor
$a_string = str_replace('#', '\\#', $a_string);
}
hooks/post-receive
--
phpMyAdmin
More information about the Git
mailing list