diff options
author | Jochen Topf <jochen@topf.org> | 2013-02-23 08:42:44 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2013-02-23 08:42:44 +0100 |
commit | e59a5b889dffdfa81c3aa154225127ce8f1334c2 (patch) | |
tree | 55836d4d254b10227e41d6f36d02a9ea9a5b670a /sources/wiki | |
parent | f70e889fdb7afadd09af545df233c17ad151acee (diff) | |
download | taginfo-e59a5b889dffdfa81c3aa154225127ce8f1334c2.tar taginfo-e59a5b889dffdfa81c3aa154225127ce8f1334c2.tar.gz |
Set :create_additions => false for JSON parse, because we don't need it and it might lead to security problems
Diffstat (limited to 'sources/wiki')
-rw-r--r-- | sources/wiki/lib/mediawikiapi.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/wiki/lib/mediawikiapi.rb b/sources/wiki/lib/mediawikiapi.rb index c924f66..7a3d652 100644 --- a/sources/wiki/lib/mediawikiapi.rb +++ b/sources/wiki/lib/mediawikiapi.rb @@ -61,7 +61,7 @@ module MediaWikiAPI params[:action] = 'query' params[:format] = 'json' result = get(params) - JSON.parse(result.body) + JSON.parse(result.body, { :create_additions => false }) end end |