myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1828320 - in /myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore: _AjaxResponse.js _AjaxResponseJSF22.js
Date Wed, 04 Apr 2018 11:43:16 GMT
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");
                 }



Mime
View raw message