You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2018/04/04 11:43:16 UTC

svn commit: r1828320 - in /myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore: _AjaxResponse.js _AjaxResponseJSF22.js

Author: lofwyr
Date: Wed Apr  4 11:43:15 2018
New Revision: 1828320

URL: http://svn.apache.org/viewvc?rev=1828320&view=rev
Log:
MYFACES-4218: AJAX parser should be more tolerant against white spaces (JavaScript)

Modified:
    myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponse.js
    myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponseJSF22.js

Modified: myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponse.js
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponse.js?rev=1828320&r1=1828319&r2=1828320&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponse.js (original)
+++ myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponse.js Wed Apr  4 11:43:15 2018
@@ -356,6 +356,9 @@ _MF_SINGLTN(_PFX_XHR + "_AjaxResponse",
                     break;
                 case this.CMD_EXTENSION:
                     break;
+                case undefined:
+                    // ignoring white spaces
+                    break;
                 default:
                     throw this._raiseError(new Error(), "_AjaxResponse.processChanges: Illegal Command Issued", "processChanges");
             }

Modified: myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponseJSF22.js
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponseJSF22.js?rev=1828320&r1=1828319&r2=1828320&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponseJSF22.js (original)
+++ myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponseJSF22.js Wed Apr  4 11:43:15 2018
@@ -307,6 +307,9 @@ if (!myfaces._impl.core._Runtime.fetchNa
                         break;
                     case CMD_EXTENSION:
                         break;
+                    case undefined:
+                        // ignoring white spaces
+                        break;
                     default:
                         throw _raiseError(new Error(), "_AjaxResponse.processChanges: Illegal Command Issued", "_processChanges");
                 }