Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
CB-5025 Don't escape/decode undefined|null values +WP7
  • Loading branch information
purplecabbage committed Jan 14, 2014
1 parent af726e2 commit 37e4565a9d6edfee847d650a822adfa64bcc743c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 169 deletions.
@@ -1,15 +1,15 @@
/*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

using System;
@@ -149,7 +149,14 @@ public void InjectScript()
var retVal = null;
if (this.keys.indexOf(key) > -1) {
window.external.Notify('DOMStorage/' + this._type + '/get/' + key);
retVal = window.unescape(decodeURIComponent(this._result));
retVal = this._result;
if(retVal) {
retVal = window.unescape(decodeURIComponent(retVal));
}
else {
window.external.Notify('DOMStorage/' + this._type + '/remove/' + key);
delete this[key];
}
this._result = null;
}
return retVal;
@@ -203,8 +210,7 @@ public void InjectScript()

Browser.InvokeScript("execScript", new string[] { script });
}



public bool HandleCommand(string commandStr)
{
string[] split = commandStr.Split('/');

This file was deleted.

0 comments on commit 37e4565

Please sign in to comment.