kms 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/kms/application/controllers/assets_controller.coffee.erb +1 -1
- data/app/assets/javascripts/kms/application/controllers/pages_controller.coffee.erb +3 -3
- data/app/assets/javascripts/kms/application/module.coffee +1 -1
- data/app/assets/javascripts/templates/settings.html.slim +5 -5
- data/app/assets/stylesheets/kms/custom.css.scss +3 -3
- data/app/controllers/kms/application_controller.rb +1 -1
- data/app/controllers/kms/public/pages_controller.rb +2 -4
- data/app/models/concerns/kms/compile_templates.rb +4 -0
- data/app/models/kms/page.rb +0 -3
- data/app/models/kms/template.rb +0 -3
- data/app/views/devise/passwords/edit.html.erb +22 -0
- data/app/views/devise/passwords/new.html.erb +15 -0
- data/config/locales/en.yml +18 -16
- data/config/locales/ru.yml +19 -17
- data/db/migrate/20141027065341_create_pages.rb +1 -1
- data/db/migrate/20141027083603_create_templates.rb +1 -1
- data/db/migrate/20141027083633_add_template_id_to_pages.rb +1 -1
- data/db/migrate/20141029145253_create_assets.rb +1 -1
- data/db/migrate/20141031125758_add_ancestry_to_pages.rb +1 -1
- data/db/migrate/20141031140308_devise_create_users.rb +1 -1
- data/db/migrate/20141119084306_add_fullpath_to_pages.rb +1 -1
- data/db/migrate/20141121112652_add_role_to_users.rb +1 -1
- data/db/migrate/20141127073902_add_templatable_fields_to_pages.rb +1 -1
- data/db/migrate/20141209132901_add_hidden_to_page.rb +1 -1
- data/db/migrate/20150209120632_add_position_to_kms_pages.rb +1 -1
- data/db/migrate/20160129100437_create_kms_snippets.rb +1 -1
- data/db/migrate/20160712094512_create_kms_settings.rb +1 -1
- data/lib/kms/engine.rb +1 -0
- data/lib/kms/version.rb +1 -1
- data/spec/internal/log/test.log +420 -0
- data/vendor/assets/bower.json +3 -1
- data/vendor/assets/bower_components/angular-cookies/LICENSE.md +21 -0
- data/vendor/assets/bower_components/angular-cookies/README.md +2 -11
- data/vendor/assets/bower_components/angular-cookies/angular-cookies.js +259 -143
- data/vendor/assets/bower_components/angular-cookies/angular-cookies.min.js +5 -4
- data/vendor/assets/bower_components/angular-cookies/angular-cookies.min.js.map +3 -3
- data/vendor/assets/bower_components/angular-cookies/bower.json +3 -2
- data/vendor/assets/bower_components/angular-cookies/index.js +2 -0
- data/vendor/assets/bower_components/angular-cookies/package.json +10 -3
- data/vendor/assets/bower_components/angular-sanitize/LICENSE.md +21 -0
- data/vendor/assets/bower_components/angular-sanitize/README.md +2 -11
- data/vendor/assets/bower_components/angular-sanitize/angular-sanitize.js +69 -64
- data/vendor/assets/bower_components/angular-sanitize/angular-sanitize.min.js +12 -12
- data/vendor/assets/bower_components/angular-sanitize/angular-sanitize.min.js.map +2 -2
- data/vendor/assets/bower_components/angular-sanitize/bower.json +3 -2
- data/vendor/assets/bower_components/angular-sanitize/index.js +2 -0
- data/vendor/assets/bower_components/angular-sanitize/package.json +10 -3
- data/vendor/assets/bower_components/angular/LICENSE.md +21 -0
- data/vendor/assets/bower_components/angular/README.md +2 -5
- data/vendor/assets/bower_components/angular/angular-csp.css +8 -0
- data/vendor/assets/bower_components/angular/angular.js +11011 -6910
- data/vendor/assets/bower_components/angular/angular.min.js +297 -244
- data/vendor/assets/bower_components/angular/angular.min.js.gzip +0 -0
- data/vendor/assets/bower_components/angular/angular.min.js.map +3 -3
- data/vendor/assets/bower_components/angular/bower.json +2 -1
- data/vendor/assets/bower_components/angular/index.js +2 -0
- data/vendor/assets/bower_components/angular/package.json +2 -2
- metadata +11 -3
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/*
|
|
2
|
-
AngularJS v1.
|
|
3
|
-
(c) 2010-
|
|
2
|
+
AngularJS v1.4.14
|
|
3
|
+
(c) 2010-2015 Google, Inc. http://angularjs.org
|
|
4
4
|
License: MIT
|
|
5
5
|
*/
|
|
6
|
-
(function(p,
|
|
7
|
-
["$cookies",function(
|
|
6
|
+
(function(p,c,n){'use strict';function l(b,a,g){var d=g.baseHref(),k=b[0];return function(b,e,f){var g,h;f=f||{};h=f.expires;g=c.isDefined(f.path)?f.path:d;c.isUndefined(e)&&(h="Thu, 01 Jan 1970 00:00:00 GMT",e="");c.isString(h)&&(h=new Date(h));e=encodeURIComponent(b)+"="+encodeURIComponent(e);e=e+(g?";path="+g:"")+(f.domain?";domain="+f.domain:"");e+=h?";expires="+h.toUTCString():"";e+=f.secure?";secure":"";f=e.length+1;4096<f&&a.warn("Cookie '"+b+"' possibly not set or overflowed because it was too large ("+
|
|
7
|
+
f+" > 4096 bytes)!");k.cookie=e}}c.module("ngCookies",["ng"]).provider("$cookies",[function(){var b=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(a,g){return{get:function(d){return a()[d]},getObject:function(d){return(d=this.get(d))?c.fromJson(d):d},getAll:function(){return a()},put:function(d,a,m){g(d,a,m?c.extend({},b,m):b)},putObject:function(d,b,a){this.put(d,c.toJson(b),a)},remove:function(a,k){g(a,n,k?c.extend({},b,k):b)}}}]}]);c.module("ngCookies").factory("$cookieStore",
|
|
8
|
+
["$cookies",function(b){return{get:function(a){return b.getObject(a)},put:function(a,c){b.putObject(a,c)},remove:function(a){b.remove(a)}}}]);l.$inject=["$document","$log","$browser"];c.module("ngCookies").provider("$$cookieWriter",function(){this.$get=l})})(window,window.angular);
|
|
8
9
|
//# sourceMappingURL=angular-cookies.min.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version":3,
|
|
3
3
|
"file":"angular-cookies.min.js",
|
|
4
|
-
"lineCount":
|
|
5
|
-
"mappings":"A;;;;;aAKC,SAAQ,CAACA,CAAD,CAASC,CAAT,CAAkBC,CAAlB,CAA6B,
|
|
4
|
+
"lineCount":8,
|
|
5
|
+
"mappings":"A;;;;;aAKC,SAAQ,CAACA,CAAD,CAASC,CAAT,CAAkBC,CAAlB,CAA6B,CA2QtCC,QAASA,EAAc,CAACC,CAAD,CAAYC,CAA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AAC,UAAD,CAAa,QAAQ,CAACC,CAAD,CAAW,CAErD,MAAO,CAWLX,IAAKA,QAAQ,CAACC,CAAD,CAAM,CACjB,MAAOU,EAAAT,UAAA,CAAmBD,CAAnB,CADU,CAXd,CAyBLI,IAAKA,QAAQ,CAACJ,CAAD,CAAMzB,CAAN,CAAa,CACxBmC,CAAAJ,UAAA,CAAmBN,CAAnB,CAAwBzB,CAAxB,CADwB,CAzBrB,CAsCLiC,OAAQA,QAAQ,CAACR,CAAD,CAAM,CACpBU,CAAAF,OAAA,CAAgBR,CAAhB,CADoB,CAtCjB,CAF8C,CAAhC,CAjCzB,CAqIAjC,EAAA4C,QAAA,CAAyB,CAAC,WAAD,CAAc,MAAd,CAAsB,UAAtB,CAEzB9C,EAAA2B,OAAA,CAAe,WAAf,CAAAC,SAAA,CAAqC,gBAArC,CAAuDmB,QAA+B,EAAG,CACvF,IAAAhB,KAAA,CAAY7B,CAD2E,CAAzF,CAvTsC,CAArC,CAAD,CA4TGH,MA5TH,CA4TWA,MAAAC,QA5TX;",
|
|
6
6
|
"sources":["angular-cookies.js"],
|
|
7
|
-
"names":["window","angular","undefined","
|
|
7
|
+
"names":["window","angular","undefined","$$CookieWriter","$document","$log","$browser","cookiePath","baseHref","rawDocument","name","value","options","path","expires","isDefined","isUndefined","isString","Date","str","encodeURIComponent","domain","toUTCString","secure","cookieLength","length","warn","cookie","module","provider","$CookiesProvider","defaults","$get","$$cookieReader","$$cookieWriter","get","key","getObject","fromJson","getAll","put","extend","putObject","toJson","remove","factory","$cookies","$inject","$$CookieWriterProvider"]
|
|
8
8
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angular-cookies",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.14",
|
|
4
4
|
"description": "AngularJS module for cookies",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
8
|
},
|
|
@@ -22,5 +22,12 @@
|
|
|
22
22
|
"bugs": {
|
|
23
23
|
"url": "https://github.com/angular/angular.js/issues"
|
|
24
24
|
},
|
|
25
|
-
"homepage": "http://angularjs.org"
|
|
25
|
+
"homepage": "http://angularjs.org",
|
|
26
|
+
"jspm": {
|
|
27
|
+
"shim": {
|
|
28
|
+
"angular-cookies": {
|
|
29
|
+
"deps": ["angular"]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
26
33
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2016 Angular
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -14,21 +14,12 @@ You can install this package either with `npm` or with `bower`.
|
|
|
14
14
|
npm install angular-sanitize
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
Add a `<script>` to your `index.html`:
|
|
18
|
-
|
|
19
|
-
```html
|
|
20
|
-
<script src="/node_modules/angular-sanitize/angular-sanitize.js"></script>
|
|
21
|
-
```
|
|
22
|
-
|
|
23
17
|
Then add `ngSanitize` as a dependency for your app:
|
|
24
18
|
|
|
25
19
|
```javascript
|
|
26
|
-
angular.module('myApp', ['
|
|
20
|
+
angular.module('myApp', [require('angular-sanitize')]);
|
|
27
21
|
```
|
|
28
22
|
|
|
29
|
-
Note that this package is not in CommonJS format, so doing `require('angular-sanitize')` will
|
|
30
|
-
return `undefined`.
|
|
31
|
-
|
|
32
23
|
### bower
|
|
33
24
|
|
|
34
25
|
```shell
|
|
@@ -56,7 +47,7 @@ Documentation is available on the
|
|
|
56
47
|
|
|
57
48
|
The MIT License
|
|
58
49
|
|
|
59
|
-
Copyright (c) 2010-
|
|
50
|
+
Copyright (c) 2010-2015 Google, Inc. http://angularjs.org
|
|
60
51
|
|
|
61
52
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
62
53
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license AngularJS v1.
|
|
3
|
-
* (c) 2010-
|
|
2
|
+
* @license AngularJS v1.4.14
|
|
3
|
+
* (c) 2010-2015 Google, Inc. http://angularjs.org
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
(function(window, angular, undefined) {'use strict';
|
|
7
7
|
|
|
8
|
+
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
9
|
+
* Any commits to this file should be reviewed with security in mind. *
|
|
10
|
+
* Changes to this file can potentially create security vulnerabilities. *
|
|
11
|
+
* An approval from 2 Core members with history of modifying *
|
|
12
|
+
* this file is required. *
|
|
13
|
+
* *
|
|
14
|
+
* Does the change somehow allow for arbitrary javascript to be executed? *
|
|
15
|
+
* Or allows for someone to change the prototype of built-in objects? *
|
|
16
|
+
* Or gives undesired access to variables likes document or window? *
|
|
17
|
+
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
18
|
+
|
|
8
19
|
var $sanitizeMinErr = angular.$$minErr('$sanitize');
|
|
9
20
|
|
|
10
21
|
/**
|
|
@@ -200,10 +211,11 @@ var inlineElements = angular.extend({}, optionalEndTagInlineElements, makeMap("a
|
|
|
200
211
|
|
|
201
212
|
// SVG Elements
|
|
202
213
|
// https://wiki.whatwg.org/wiki/Sanitization_rules#svg_Elements
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
"
|
|
214
|
+
// Note: the elements animate,animateColor,animateMotion,animateTransform,set are intentionally omitted.
|
|
215
|
+
// They can potentially allow for arbitrary javascript to be executed. See #11290
|
|
216
|
+
var svgElements = makeMap("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph," +
|
|
217
|
+
"hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline," +
|
|
218
|
+
"radialGradient,rect,stop,svg,switch,text,title,tspan,use");
|
|
207
219
|
|
|
208
220
|
// Special Elements (can contain anything)
|
|
209
221
|
var specialElements = makeMap("script,style");
|
|
@@ -221,36 +233,37 @@ var uriAttrs = makeMap("background,cite,href,longdesc,src,usemap,xlink:href");
|
|
|
221
233
|
var htmlAttrs = makeMap('abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,' +
|
|
222
234
|
'color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,' +
|
|
223
235
|
'ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,' +
|
|
224
|
-
'scope,scrolling,shape,size,span,start,summary,target,title,type,' +
|
|
236
|
+
'scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,' +
|
|
225
237
|
'valign,value,vspace,width');
|
|
226
238
|
|
|
227
239
|
// SVG attributes (without "id" and "name" attributes)
|
|
228
240
|
// https://wiki.whatwg.org/wiki/Sanitization_rules#svg_Attributes
|
|
229
241
|
var svgAttrs = makeMap('accent-height,accumulate,additive,alphabetic,arabic-form,ascent,' +
|
|
230
|
-
'
|
|
231
|
-
'
|
|
232
|
-
'font-
|
|
233
|
-
'
|
|
234
|
-
'
|
|
235
|
-
'
|
|
236
|
-
'
|
|
237
|
-
'
|
|
238
|
-
'
|
|
239
|
-
'stroke-
|
|
240
|
-
'stroke-
|
|
241
|
-
'underline-
|
|
242
|
-
'
|
|
243
|
-
'xlink:
|
|
244
|
-
'zoomAndPan');
|
|
242
|
+
'baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,' +
|
|
243
|
+
'cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,' +
|
|
244
|
+
'font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,' +
|
|
245
|
+
'height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,' +
|
|
246
|
+
'marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,' +
|
|
247
|
+
'max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,' +
|
|
248
|
+
'path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,' +
|
|
249
|
+
'requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,' +
|
|
250
|
+
'stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,' +
|
|
251
|
+
'stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,' +
|
|
252
|
+
'stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,' +
|
|
253
|
+
'underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,' +
|
|
254
|
+
'width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,' +
|
|
255
|
+
'xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan', true);
|
|
245
256
|
|
|
246
257
|
var validAttrs = angular.extend({},
|
|
247
258
|
uriAttrs,
|
|
248
259
|
svgAttrs,
|
|
249
260
|
htmlAttrs);
|
|
250
261
|
|
|
251
|
-
function makeMap(str) {
|
|
262
|
+
function makeMap(str, lowercaseKeys) {
|
|
252
263
|
var obj = {}, items = str.split(','), i;
|
|
253
|
-
for (i = 0; i < items.length; i++)
|
|
264
|
+
for (i = 0; i < items.length; i++) {
|
|
265
|
+
obj[lowercaseKeys ? angular.lowercase(items[i]) : items[i]] = true;
|
|
266
|
+
}
|
|
254
267
|
return obj;
|
|
255
268
|
}
|
|
256
269
|
|
|
@@ -276,14 +289,14 @@ function htmlParser(html, handler) {
|
|
|
276
289
|
}
|
|
277
290
|
}
|
|
278
291
|
var index, chars, match, stack = [], last = html, text;
|
|
279
|
-
stack.last = function() { return stack[
|
|
292
|
+
stack.last = function() { return stack[stack.length - 1]; };
|
|
280
293
|
|
|
281
294
|
while (html) {
|
|
282
295
|
text = '';
|
|
283
296
|
chars = true;
|
|
284
297
|
|
|
285
298
|
// Make sure we're not in a script or style element
|
|
286
|
-
if (!stack.last() || !specialElements[
|
|
299
|
+
if (!stack.last() || !specialElements[stack.last()]) {
|
|
287
300
|
|
|
288
301
|
// Comment
|
|
289
302
|
if (html.indexOf("<!--") === 0) {
|
|
@@ -341,7 +354,8 @@ function htmlParser(html, handler) {
|
|
|
341
354
|
}
|
|
342
355
|
|
|
343
356
|
} else {
|
|
344
|
-
|
|
357
|
+
// IE versions 9 and 10 do not understand the regex '[^]', so using a workaround with [\W\w].
|
|
358
|
+
html = html.replace(new RegExp("([\\W\\w]*)<\\s*\\/\\s*" + stack.last() + "[^>]*>", 'i'),
|
|
345
359
|
function(all, text) {
|
|
346
360
|
text = text.replace(COMMENT_REGEXP, "$1").replace(CDATA_REGEXP, "$1");
|
|
347
361
|
|
|
@@ -365,20 +379,21 @@ function htmlParser(html, handler) {
|
|
|
365
379
|
|
|
366
380
|
function parseStartTag(tag, tagName, rest, unary) {
|
|
367
381
|
tagName = angular.lowercase(tagName);
|
|
368
|
-
if (blockElements[
|
|
369
|
-
while (stack.last() && inlineElements[
|
|
382
|
+
if (blockElements[tagName]) {
|
|
383
|
+
while (stack.last() && inlineElements[stack.last()]) {
|
|
370
384
|
parseEndTag("", stack.last());
|
|
371
385
|
}
|
|
372
386
|
}
|
|
373
387
|
|
|
374
|
-
if (optionalEndTagElements[
|
|
388
|
+
if (optionalEndTagElements[tagName] && stack.last() == tagName) {
|
|
375
389
|
parseEndTag("", tagName);
|
|
376
390
|
}
|
|
377
391
|
|
|
378
|
-
unary = voidElements[
|
|
392
|
+
unary = voidElements[tagName] || !!unary;
|
|
379
393
|
|
|
380
|
-
if (!unary)
|
|
394
|
+
if (!unary) {
|
|
381
395
|
stack.push(tagName);
|
|
396
|
+
}
|
|
382
397
|
|
|
383
398
|
var attrs = {};
|
|
384
399
|
|
|
@@ -397,16 +412,17 @@ function htmlParser(html, handler) {
|
|
|
397
412
|
function parseEndTag(tag, tagName) {
|
|
398
413
|
var pos = 0, i;
|
|
399
414
|
tagName = angular.lowercase(tagName);
|
|
400
|
-
if (tagName)
|
|
415
|
+
if (tagName) {
|
|
401
416
|
// Find the closest opened tag of the same type
|
|
402
|
-
for (pos = stack.length - 1; pos >= 0; pos--)
|
|
403
|
-
if (stack[
|
|
404
|
-
|
|
417
|
+
for (pos = stack.length - 1; pos >= 0; pos--) {
|
|
418
|
+
if (stack[pos] == tagName) break;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
405
421
|
|
|
406
422
|
if (pos >= 0) {
|
|
407
423
|
// Close all the open elements, up the stack
|
|
408
424
|
for (i = stack.length - 1; i >= pos; i--)
|
|
409
|
-
if (handler.end) handler.end(stack[
|
|
425
|
+
if (handler.end) handler.end(stack[i]);
|
|
410
426
|
|
|
411
427
|
// Remove the open elements from the stack
|
|
412
428
|
stack.length = pos;
|
|
@@ -415,7 +431,6 @@ function htmlParser(html, handler) {
|
|
|
415
431
|
}
|
|
416
432
|
|
|
417
433
|
var hiddenPre=document.createElement("pre");
|
|
418
|
-
var spaceRe = /^(\s*)([\s\S]*?)(\s*)$/;
|
|
419
434
|
/**
|
|
420
435
|
* decodes all entities into regular string
|
|
421
436
|
* @param value
|
|
@@ -424,22 +439,10 @@ var spaceRe = /^(\s*)([\s\S]*?)(\s*)$/;
|
|
|
424
439
|
function decodeEntities(value) {
|
|
425
440
|
if (!value) { return ''; }
|
|
426
441
|
|
|
427
|
-
|
|
428
|
-
//
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
var spaceAfter = parts[3];
|
|
432
|
-
var content = parts[2];
|
|
433
|
-
if (content) {
|
|
434
|
-
hiddenPre.innerHTML=content.replace(/</g,"<");
|
|
435
|
-
// innerText depends on styling as it doesn't display hidden elements.
|
|
436
|
-
// Therefore, it's better to use textContent not to cause unnecessary
|
|
437
|
-
// reflows. However, IE<9 don't support textContent so the innerText
|
|
438
|
-
// fallback is necessary.
|
|
439
|
-
content = 'textContent' in hiddenPre ?
|
|
440
|
-
hiddenPre.textContent : hiddenPre.innerText;
|
|
441
|
-
}
|
|
442
|
-
return spaceBefore + content + spaceAfter;
|
|
442
|
+
hiddenPre.innerHTML = value.replace(/</g,"<");
|
|
443
|
+
// innerText depends on styling as it doesn't display hidden elements.
|
|
444
|
+
// Therefore, it's better to use textContent not to cause unnecessary reflows.
|
|
445
|
+
return hiddenPre.textContent;
|
|
443
446
|
}
|
|
444
447
|
|
|
445
448
|
/**
|
|
@@ -628,8 +631,8 @@ angular.module('ngSanitize', []).provider('$sanitize', $SanitizeProvider);
|
|
|
628
631
|
*/
|
|
629
632
|
angular.module('ngSanitize').filter('linky', ['$sanitize', function($sanitize) {
|
|
630
633
|
var LINKY_URL_REGEXP =
|
|
631
|
-
/((ftp|https?):\/\/|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"]
|
|
632
|
-
MAILTO_REGEXP = /^mailto
|
|
634
|
+
/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,
|
|
635
|
+
MAILTO_REGEXP = /^mailto:/i;
|
|
633
636
|
|
|
634
637
|
return function(text, target) {
|
|
635
638
|
if (!text) return text;
|
|
@@ -641,8 +644,10 @@ angular.module('ngSanitize').filter('linky', ['$sanitize', function($sanitize) {
|
|
|
641
644
|
while ((match = raw.match(LINKY_URL_REGEXP))) {
|
|
642
645
|
// We can not end in these as they are sometimes found at the end of the sentence
|
|
643
646
|
url = match[0];
|
|
644
|
-
// if we did not match ftp/http/mailto then assume mailto
|
|
645
|
-
if (match[2]
|
|
647
|
+
// if we did not match ftp/http/www/mailto then assume mailto
|
|
648
|
+
if (!match[2] && !match[4]) {
|
|
649
|
+
url = (match[3] ? 'http://' : 'mailto:') + url;
|
|
650
|
+
}
|
|
646
651
|
i = match.index;
|
|
647
652
|
addText(raw.substr(0, i));
|
|
648
653
|
addLink(url, match[0].replace(MAILTO_REGEXP, ''));
|
|
@@ -661,13 +666,13 @@ angular.module('ngSanitize').filter('linky', ['$sanitize', function($sanitize) {
|
|
|
661
666
|
function addLink(url, text) {
|
|
662
667
|
html.push('<a ');
|
|
663
668
|
if (angular.isDefined(target)) {
|
|
664
|
-
html.push('target="'
|
|
665
|
-
|
|
666
|
-
|
|
669
|
+
html.push('target="',
|
|
670
|
+
target,
|
|
671
|
+
'" ');
|
|
667
672
|
}
|
|
668
|
-
html.push('href="'
|
|
669
|
-
|
|
670
|
-
|
|
673
|
+
html.push('href="',
|
|
674
|
+
url.replace(/"/g, '"'),
|
|
675
|
+
'">');
|
|
671
676
|
addText(text);
|
|
672
677
|
html.push('</a>');
|
|
673
678
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/*
|
|
2
|
-
AngularJS v1.
|
|
3
|
-
(c) 2010-
|
|
2
|
+
AngularJS v1.4.14
|
|
3
|
+
(c) 2010-2015 Google, Inc. http://angularjs.org
|
|
4
4
|
License: MIT
|
|
5
5
|
*/
|
|
6
|
-
(function(
|
|
7
|
-
if(0<=c){for(e
|
|
8
|
-
b)),a=a.substring(b+3),
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var
|
|
15
|
-
c){
|
|
6
|
+
(function(n,h,p){'use strict';function E(a){var f=[];r(f,h.noop).chars(a);return f.join("")}function g(a,f){var d={},c=a.split(","),b;for(b=0;b<c.length;b++)d[f?h.lowercase(c[b]):c[b]]=!0;return d}function F(a,f){function d(a,b,d,l){b=h.lowercase(b);if(s[b])for(;e.last()&&t[e.last()];)c("",e.last());u[b]&&e.last()==b&&c("",b);(l=v[b]||!!l)||e.push(b);var m={};d.replace(G,function(b,a,f,c,d){m[a]=q(f||c||d||"")});f.start&&f.start(b,m,l)}function c(b,a){var c=0,d;if(a=h.lowercase(a))for(c=e.length-
|
|
7
|
+
1;0<=c&&e[c]!=a;c--);if(0<=c){for(d=e.length-1;d>=c;d--)f.end&&f.end(e[d]);e.length=c}}"string"!==typeof a&&(a=null===a||"undefined"===typeof a?"":""+a);var b,k,e=[],m=a,l;for(e.last=function(){return e[e.length-1]};a;){l="";k=!0;if(e.last()&&w[e.last()])a=a.replace(new RegExp("([\\W\\w]*)<\\s*\\/\\s*"+e.last()+"[^>]*>","i"),function(a,b){b=b.replace(H,"$1").replace(I,"$1");f.chars&&f.chars(q(b));return""}),c("",e.last());else{if(0===a.indexOf("\x3c!--"))b=a.indexOf("--",4),0<=b&&a.lastIndexOf("--\x3e",
|
|
8
|
+
b)===b&&(f.comment&&f.comment(a.substring(4,b)),a=a.substring(b+3),k=!1);else if(x.test(a)){if(b=a.match(x))a=a.replace(b[0],""),k=!1}else if(J.test(a)){if(b=a.match(y))a=a.substring(b[0].length),b[0].replace(y,c),k=!1}else K.test(a)&&((b=a.match(z))?(b[4]&&(a=a.substring(b[0].length),b[0].replace(z,d)),k=!1):(l+="<",a=a.substring(1)));k&&(b=a.indexOf("<"),l+=0>b?a:a.substring(0,b),a=0>b?"":a.substring(b),f.chars&&f.chars(q(l)))}if(a==m)throw L("badparse",a);m=a}c()}function q(a){if(!a)return"";A.innerHTML=
|
|
9
|
+
a.replace(/</g,"<");return A.textContent}function B(a){return a.replace(/&/g,"&").replace(M,function(a){var d=a.charCodeAt(0);a=a.charCodeAt(1);return"&#"+(1024*(d-55296)+(a-56320)+65536)+";"}).replace(N,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function r(a,f){var d=!1,c=h.bind(a,a.push);return{start:function(a,k,e){a=h.lowercase(a);!d&&w[a]&&(d=a);d||!0!==C[a]||(c("<"),c(a),h.forEach(k,function(d,e){var k=h.lowercase(e),g="img"===a&&"src"===k||
|
|
10
|
+
"background"===k;!0!==O[k]||!0===D[k]&&!f(d,g)||(c(" "),c(e),c('="'),c(B(d)),c('"'))}),c(e?"/>":">"))},end:function(a){a=h.lowercase(a);d||!0!==C[a]||(c("</"),c(a),c(">"));a==d&&(d=!1)},chars:function(a){d||c(B(a))}}}var L=h.$$minErr("$sanitize"),z=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,y=/^<\/\s*([\w:-]+)[^>]*>/,G=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,K=/^</,J=/^<\//,H=/\x3c!--(.*?)--\x3e/g,x=/<!DOCTYPE([^>]*?)>/i,
|
|
11
|
+
I=/<!\[CDATA\[(.*?)]]\x3e/g,M=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,N=/([^\#-~| |!])/g,v=g("area,br,col,hr,img,wbr");n=g("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr");p=g("rp,rt");var u=h.extend({},p,n),s=h.extend({},n,g("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),t=h.extend({},p,g("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var"));
|
|
12
|
+
n=g("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan,use");var w=g("script,style"),C=h.extend({},v,s,t,u,n),D=g("background,cite,href,longdesc,src,usemap,xlink:href");n=g("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width");
|
|
13
|
+
p=g("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",
|
|
14
|
+
!0);var O=h.extend({},D,p,n),A=document.createElement("pre");h.module("ngSanitize",[]).provider("$sanitize",function(){this.$get=["$$sanitizeUri",function(a){return function(f){var d=[];F(f,r(d,function(c,b){return!/^unsafe/.test(a(c,b))}));return d.join("")}}]});h.module("ngSanitize").filter("linky",["$sanitize",function(a){var f=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,d=/^mailto:/i;return function(c,b){function k(a){a&&g.push(E(a))}function e(a,
|
|
15
|
+
c){g.push("<a ");h.isDefined(b)&&g.push('target="',b,'" ');g.push('href="',a.replace(/"/g,"""),'">');k(c);g.push("</a>")}if(!c)return c;for(var m,l=c,g=[],n,p;m=l.match(f);)n=m[0],m[2]||m[4]||(n=(m[3]?"http://":"mailto:")+n),p=m.index,k(l.substr(0,p)),e(n,m[0].replace(d,"")),l=l.substring(p+m[0].length);k(l);return a(g.join(""))}}])})(window,window.angular);
|
|
16
16
|
//# sourceMappingURL=angular-sanitize.min.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version":3,
|
|
3
3
|
"file":"angular-sanitize.min.js",
|
|
4
4
|
"lineCount":15,
|
|
5
|
-
"mappings":"A;;;;;aAKC,SAAQ,CAACA,CAAD,CAASC,CAAT,CAAkBC,CAAlB,CAA6B,
|
|
5
|
+
"mappings":"A;;;;;aAKC,SAAQ,CAACA,CAAD,CAASC,CAAT,CAAkBC,CAAlB,CAA6B,CA6JtCC,QAASA,EAAY,CAACC,CAAD,CA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,IAAIV,CAAJ,CACIyE,EAAM/D,CADV,CAEI5B,EAAO,EAFX,CAGIyF,CAHJ,CAII7F,CACJ,CAAQsB,CAAR,CAAgByE,CAAAzE,MAAA,CAAUkE,CAAV,CAAhB,CAAA,CAEEK,CAQA,CARMvE,CAAA,CAAM,CAAN,CAQN,CANKA,CAAA,CAAM,CAAN,CAML,EANkBA,CAAA,CAAM,CAAN,CAMlB,GALEuE,CAKF,EALSvE,CAAA,CAAM,CAAN,CAAA,CAAW,SAAX,CAAuB,SAKhC,EAL6CuE,CAK7C,EAHA7F,CAGA,CAHIsB,CAAAS,MAGJ,CAFA4D,CAAA,CAAQI,CAAAC,OAAA,CAAW,CAAX,CAAchG,CAAd,CAAR,CAEA,CADA4F,CAAA,CAAQC,CAAR,CAAavE,CAAA,CAAM,CAAN,CAAAF,QAAA,CAAiBqE,CAAjB,CAAgC,EAAhC,CAAb,CACA,CAAAM,CAAA,CAAMA,CAAArD,UAAA,CAAc1C,CAAd,CAAkBsB,CAAA,CAAM,CAAN,CAAArB,OAAlB,CAER0F,EAAA,CAAQI,CAAR,CACA,OAAOR,EAAA,CAAUnF,CAAAX,KAAA,CAAU,EAAV,CAAV,CApBqB,CAL+C,CAAlC,CAA7C,CAlnBsC,CAArC,CAAD,CAqqBGT,MArqBH,CAqqBWA,MAAAC,QArqBX;",
|
|
6
6
|
"sources":["angular-sanitize.js"],
|
|
7
|
-
"names":["window","angular","undefined","sanitizeText","chars","buf","htmlSanitizeWriter","writer","noop","join","makeMap","str","obj","items","split","i","length","htmlParser","html","handler","parseStartTag","tag","tagName","rest","unary","
|
|
7
|
+
"names":["window","angular","undefined","sanitizeText","chars","buf","htmlSanitizeWriter","writer","noop","join","makeMap","str","lowercaseKeys","obj","items","split","i","length","lowercase","htmlParser","html","handler","parseStartTag","tag","tagName","rest","unary","blockElements","stack","last","inlineElements","parseEndTag","optionalEndTagElements","voidElements","push","attrs","replace","ATTR_REGEXP","match","name","doubleQuotedValue","singleQuotedValue","unquotedValue","decodeEntities","start","pos","end","index","text","stack.last","specialElements","RegExp","all","COMMENT_REGEXP","CDATA_REGEXP","indexOf","lastIndexOf","comment","substring","DOCTYPE_REGEXP","test","BEGING_END_TAGE_REGEXP","END_TAG_REGEXP","BEGIN_TAG_REGEXP","START_TAG_REGEXP","$sanitizeMinErr","value","hiddenPre","innerHTML","textContent","encodeEntities","SURROGATE_PAIR_REGEXP","hi","charCodeAt","low","NON_ALPHANUMERIC_REGEXP","uriValidator","ignore","out","bind","validElements","forEach","key","lkey","isImage","validAttrs","uriAttrs","$$minErr","optionalEndTagBlockElements","optionalEndTagInlineElements","extend","svgElements","htmlAttrs","svgAttrs","document","createElement","module","provider","$SanitizeProvider","$get","$$sanitizeUri","uri","filter","$sanitize","LINKY_URL_REGEXP","MAILTO_REGEXP","target","addText","addLink","url","isDefined","raw","substr"]
|
|
8
8
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angular-sanitize",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.14",
|
|
4
4
|
"description": "AngularJS module for sanitizing HTML",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
8
|
},
|
|
@@ -22,5 +22,12 @@
|
|
|
22
22
|
"bugs": {
|
|
23
23
|
"url": "https://github.com/angular/angular.js/issues"
|
|
24
24
|
},
|
|
25
|
-
"homepage": "http://angularjs.org"
|
|
25
|
+
"homepage": "http://angularjs.org",
|
|
26
|
+
"jspm": {
|
|
27
|
+
"shim": {
|
|
28
|
+
"angular-sanitize": {
|
|
29
|
+
"deps": ["angular"]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
26
33
|
}
|