Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: clintharrison/AJAX-Chat
base: a007fba0cd
...
head fork: clintharrison/AJAX-Chat
compare: cc0a5f06bb
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 4 additions and 2 deletions.
  1. +1 −1  chat/index.php
  2. +3 −1 chat/js/chat.js
View
2  chat/index.php
@@ -8,7 +8,7 @@
*/
// Show all errors:
-error_reporting(E_ALL);
+error_reporting(E_ALL | E_STRICT);
// Path to the chat directory:
define('AJAX_CHAT_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');
View
4 chat/js/chat.js
@@ -2489,7 +2489,9 @@ var ajaxChat = {
// Reset the charCounter after newline tags (<br/>):
if(i>4 && text.substr(i-5,4) == '<br/')
charCounter = 0;
- } else if(currentChar == '&') {
+ }
+
+ if(!withinTag && currentChar == '&') {
withinEntity = true;
} else if(withinEntity && i>0 && text.charAt(i-1) == ';') {
withinEntity = false;

No commit comments for this range

Something went wrong with that request. Please try again.