The branch, master has been updated via db84b2005243f66934d8ae10d9459022e17f46de (commit) from c54b04037dbf8920733cc9fffee4fe585310a1ae (commit)
- Log ----------------------------------------------------------------- commit db84b2005243f66934d8ae10d9459022e17f46de Author: Michal Čihař michal@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