cwe
stringclasses
9 values
func_name
stringclasses
551 values
func_src_before
stringlengths
72
114k
func_src_after
stringclasses
576 values
line_changes
stringclasses
576 values
char_changes
stringclasses
574 values
commit_link
stringclasses
430 values
file_name
stringclasses
411 values
vul_type
stringclasses
9 values
num_tokens
float64
16
28.1k
⌀
refactored
bool
2 classes
parsing_score
bool
2 classes
generated
bool
2 classes
cwe-079
get_context_data
def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context['comments'] = self.object.comment_set.all().order_by('-time') context['form'] = self.get_form() context['md'] = markdown(self.object.content, extensions=[ ...
def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context['comments'] = self.object.comment_set.all().order_by('-time') context['form'] = self.get_form() context['md'] = safe_md(self.object.content) return context
{'deleted': [{'line_no': 5, 'char_start': 215, 'char_end': 269, 'line': " context['md'] = markdown(self.object.content,\n"}, {'line_no': 6, 'char_start': 269, 'char_end': 315, 'line': ' extensions=[\n'}, {'line_no': 7, 'char_start': 315, 'char_end': 381, 'line': " ...
{'deleted': [{'char_start': 239, 'char_end': 240, 'chars': 'm'}, {'char_start': 241, 'char_end': 243, 'chars': 'rk'}, {'char_start': 244, 'char_end': 247, 'chars': 'own'}, {'char_start': 267, 'char_end': 550, 'chars': ",\n extensions=[\n 'markdown.exte...
github.com/Cheng-mq1216/production-practice/commit/333dc34f5feada55d1f6ff1255949ca00dec0f9c
app/Index/views.py
cwe-079
88
false
true
false
cwe-079
handle_file
def handle_file(u: Profile, headline: str, category: str, text: str, file): m: Media = Media() upload_base_path: str = 'uploads/' + str(date.today().year) high_res_file_name = upload_base_path + '/HIGHRES_' + ntpath.basename(file.name.replace(" ", "_")) low_res_file_name = upload_base_path + '/LOWRES_' ...
def handle_file(u: Profile, headline: str, category: str, text: str, file): m: Media = Media() upload_base_path: str = 'uploads/' + str(date.today().year) high_res_file_name = upload_base_path + '/HIGHRES_' + ntpath.basename(file.name.replace(" ", "_")) low_res_file_name = upload_base_path + '/LOWRES_' ...
{'deleted': [{'line_no': 21, 'char_start': 1021, 'char_end': 1039, 'line': ' m.text = text\n'}, {'line_no': 22, 'char_start': 1039, 'char_end': 1081, 'line': ' m.cachedText = compile_markdown(text)\n'}, {'line_no': 23, 'char_start': 1081, 'char_end': 1107, 'line': ' m.category = category\n'}, {'line_no': 26, '...
{'deleted': [], 'added': [{'char_start': 1034, 'char_end': 1041, 'chars': 'escape('}, {'char_start': 1045, 'char_end': 1046, 'chars': ')'}, {'char_start': 1083, 'char_end': 1090, 'chars': 'escape('}, {'char_start': 1094, 'char_end': 1095, 'chars': ')'}, {'char_start': 1114, 'char_end': 1121, 'chars': 'escape('}, {'char...
github.com/Technikradio/C3FOCSite/commit/6e330d4d44bbfdfce9993dffea97008276771600
c3shop/frontpage/management/mediatools/media_actions.py
cwe-079
363
false
true
false
cwe-079
mode_close
def mode_close(self, request): """ This is called by render_POST when the client is signalling that it is about to be closed. Args: request (Request): Incoming request. """ csessid = request.args.get('csessid')[0] try: sess = self.ses...
def mode_close(self, request): """ This is called by render_POST when the client is signalling that it is about to be closed. Args: request (Request): Incoming request. """ csessid = cgi.escape(request.args['csessid'][0]) try: sess = ...
{'deleted': [{'line_no': 10, 'char_start': 231, 'char_end': 280, 'line': " csessid = request.args.get('csessid')[0]\n"}], 'added': [{'line_no': 10, 'char_start': 231, 'char_end': 288, 'line': " csessid = cgi.escape(request.args['csessid'][0])\n"}]}
{'deleted': [{'char_start': 261, 'char_end': 266, 'chars': '.get('}, {'char_start': 275, 'char_end': 276, 'chars': ')'}], 'added': [{'char_start': 249, 'char_end': 260, 'chars': 'cgi.escape('}, {'char_start': 272, 'char_end': 273, 'chars': '['}, {'char_start': 282, 'char_end': 283, 'chars': ']'}, {'char_start': 286, 'c...
github.com/evennia/evennia/commit/300261529b82f95414c9d1d7150d6eda4695bb93
evennia/server/portal/webclient_ajax.py
cwe-079
104
false
true
false
cwe-079
edit_coordinator
@check_document_access_permission() def edit_coordinator(request): coordinator_id = request.GET.get('coordinator') doc = None if coordinator_id: doc = Document2.objects.get(id=coordinator_id) coordinator = Coordinator(document=doc) else: coordinator = Coordinator() api = get_oozie(request.user...
@check_document_access_permission() def edit_coordinator(request): coordinator_id = request.GET.get('coordinator') doc = None if coordinator_id: doc = Document2.objects.get(id=coordinator_id) coordinator = Coordinator(document=doc) else: coordinator = Coordinator() api = get_oozie(request.user...
{'deleted': [{'line_no': 27, 'char_start': 915, 'char_end': 959, 'line': " 'coordinator_json': coordinator.json,\n"}, {'line_no': 28, 'char_start': 959, 'char_end': 1029, 'line': " 'credentials_json': json.dumps(credentials.credentials.keys()),\n"}, {'line_no': 29, 'char_start': 1029, 'char_end': 1076, 'line'...
{'deleted': [], 'added': [{'char_start': 957, 'char_end': 968, 'chars': '_for_html()'}, {'char_start': 1037, 'char_end': 1061, 'chars': ', cls=JSONEncoderForHTML'}, {'char_start': 1108, 'char_end': 1132, 'chars': ', cls=JSONEncoderForHTML'}]}
github.com/gethue/hue/commit/6641c62beaa1468082e47d82da5ed758d11c7735
apps/oozie/src/oozie/views/editor2.py
cwe-079
271
false
true
false
cwe-079
mode_keepalive
def mode_keepalive(self, request): """ This is called by render_POST when the client is replying to the keepalive. """ csessid = request.args.get('csessid')[0] self.last_alive[csessid] = (time.time(), False) return '""'
def mode_keepalive(self, request): """ This is called by render_POST when the client is replying to the keepalive. """ csessid = cgi.escape(request.args['csessid'][0]) self.last_alive[csessid] = (time.time(), False) return '""'
{'deleted': [{'line_no': 6, 'char_start': 155, 'char_end': 204, 'line': " csessid = request.args.get('csessid')[0]\n"}], 'added': [{'line_no': 6, 'char_start': 155, 'char_end': 212, 'line': " csessid = cgi.escape(request.args['csessid'][0])\n"}]}
{'deleted': [{'char_start': 185, 'char_end': 190, 'chars': '.get('}, {'char_start': 199, 'char_end': 200, 'chars': ')'}], 'added': [{'char_start': 173, 'char_end': 184, 'chars': 'cgi.escape('}, {'char_start': 196, 'char_end': 197, 'chars': '['}, {'char_start': 206, 'char_end': 207, 'chars': ']'}, {'char_start': 210, 'c...
github.com/evennia/evennia/commit/300261529b82f95414c9d1d7150d6eda4695bb93
evennia/server/portal/webclient_ajax.py
cwe-079
69
false
true
false
cwe-079
screenshotcommentcounts
@register.tag @basictag(takes_context=True) def screenshotcommentcounts(context, screenshot): """ Returns a JSON array of current comments for a screenshot. Each entry in the array has a dictionary containing the following keys: =========== ================================================== Ke...
@register.tag @basictag(takes_context=True) def screenshotcommentcounts(context, screenshot): """ Returns a JSON array of current comments for a screenshot. Each entry in the array has a dictionary containing the following keys: =========== ================================================== Ke...
{'deleted': [{'line_no': 32, 'char_start': 1249, 'char_end': 1287, 'line': " 'text': comment.text,\n"}], 'added': [{'line_no': 32, 'char_start': 1249, 'char_end': 1295, 'line': " 'text': escape(comment.text),\n"}]}
{'deleted': [], 'added': [{'char_start': 1273, 'char_end': 1280, 'chars': 'escape('}, {'char_start': 1292, 'char_end': 1293, 'chars': ')'}]}
github.com/reviewboard/reviewboard/commit/7a0a9d94555502278534dedcf2d75e9fccce8c3d
reviewboard/reviews/templatetags/reviewtags.py
cwe-079
332
false
true
false
cwe-079
get_queryset
def get_queryset(self, **kwargs): queryset = Article.objects.order_by('-time') for i in queryset: i.md = markdown(i.content, extensions=[ 'markdown.extensions.extra', 'markdown.extensions.codehilite', 'markdown.extensions.toc', ...
def get_queryset(self, **kwargs): queryset = Article.objects.order_by('-time') for i in queryset: i.md = safe_md(i.content) return queryset
{'deleted': [{'line_no': 4, 'char_start': 118, 'char_end': 170, 'line': ' i.md = markdown(i.content, extensions=[\n'}, {'line_no': 5, 'char_start': 170, 'char_end': 215, 'line': " 'markdown.extensions.extra',\n"}, {'line_no': 6, 'char_start': 215, 'char_end': 265, 'line': " 'mar...
{'deleted': [{'char_start': 137, 'char_end': 162, 'chars': 'markdown(i.content, exten'}, {'char_start': 163, 'char_end': 188, 'chars': "ions=[\n 'm"}, {'char_start': 189, 'char_end': 196, 'chars': 'rkdown.'}, {'char_start': 197, 'char_end': 232, 'chars': "xtensions.extra',\n '"}, {'char_st...
github.com/Cheng-mq1216/production-practice/commit/333dc34f5feada55d1f6ff1255949ca00dec0f9c
app/Index/views.py
cwe-079
61
false
true
false
cwe-079
oidc_handle_session_management_iframe_rp
static int oidc_handle_session_management_iframe_rp(request_rec *r, oidc_cfg *c, oidc_session_t *session, const char *client_id, const char *check_session_iframe) { oidc_debug(r, "enter"); const char *java_script = " <script type=\"text/javascript\">\n" " var targetOrigin = '%s';\n" " var...
static int oidc_handle_session_management_iframe_rp(request_rec *r, oidc_cfg *c, oidc_session_t *session, const char *client_id, const char *check_session_iframe) { oidc_debug(r, "enter"); const char *java_script = " <script type=\"text/javascript\">\n" " var targetOrigin = '%s';\n" " var...
{'deleted': [{'line_no': 21, 'char_start': 743, 'char_end': 803, 'line': '\t\t\t" timerID = setInterval(\'checkSession()\', %s);\\n"\n'}, {'line_no': 64, 'char_start': 2273, 'char_end': 2303, 'line': '\tif (s_poll_interval == NULL)\n'}, {'line_no': 65, 'char_start': 2303, 'char_end': 2331, 'line': '\t\ts_poll_in...
{'deleted': [{'char_start': 796, 'char_end': 797, 'chars': 's'}, {'char_start': 2275, 'char_end': 2276, 'chars': 'f'}, {'char_start': 2293, 'char_end': 2296, 'chars': ' =='}, {'char_start': 2304, 'char_end': 2306, 'chars': '\ts'}, {'char_start': 2323, 'char_end': 2324, 'chars': '"'}, {'char_start': 2328, 'char_end': 23...
github.com/zmartzone/mod_auth_openidc/commit/132a4111bf3791e76437619a66336dce2ce4c79b
src/mod_auth_openidc.c
cwe-079
760
false
true
false
cwe-079
json_dumps
@register.filter def json_dumps(value, indent=None): if isinstance(value, QuerySet): result = serialize('json', value, indent=indent) else: result = json.dumps(value, indent=indent, cls=DjbletsJSONEncoder) return mark_safe(result)
@register.filter def json_dumps(value, indent=None): if isinstance(value, QuerySet): result = serialize('json', value, indent=indent) else: result = json.dumps(value, indent=indent, cls=DjbletsJSONEncoder) return mark_safe(force_text(result).translate(_safe_js_escapes))
{'deleted': [{'line_no': 8, 'char_start': 231, 'char_end': 259, 'line': ' return mark_safe(result)\n'}], 'added': [{'line_no': 8, 'char_start': 231, 'char_end': 299, 'line': ' return mark_safe(force_text(result).translate(_safe_js_escapes))\n'}]}
{'deleted': [], 'added': [{'char_start': 252, 'char_end': 263, 'chars': 'force_text('}, {'char_start': 270, 'char_end': 299, 'chars': '.translate(_safe_js_escapes))'}]}
github.com/djblets/djblets/commit/77a68c03cd619a0996f3f37337b8c39ca6643d6e
djblets/util/templatetags/djblets_js.py
cwe-079
61
false
true
false
cwe-079
html_content
@property async def html_content(self): content = await self.content if not content: return '' return markdown(content)
@property async def html_content(self): content = markupsafe.escape(await self.content) if not content: return '' return markdown(content)
{'deleted': [{'line_no': 3, 'char_start': 48, 'char_end': 85, 'line': ' content = await self.content\n'}], 'added': [{'line_no': 3, 'char_start': 48, 'char_end': 104, 'line': ' content = markupsafe.escape(await self.content)\n'}]}
{'deleted': [], 'added': [{'char_start': 66, 'char_end': 84, 'chars': 'markupsafe.escape('}, {'char_start': 102, 'char_end': 103, 'chars': ')'}]}
github.com/dongweiming/lyanna/commit/fcefac79e4b7601e81a3b3fe0ad26ab18ee95d7d
models/comment.py
cwe-079
31
false
true
false
cwe-079
mode_input
def mode_input(self, request): """ This is called by render_POST when the client is sending data to the server. Args: request (Request): Incoming request. """ csessid = request.args.get('csessid')[0] self.last_alive[csessid] = (time.time(), Fals...
def mode_input(self, request): """ This is called by render_POST when the client is sending data to the server. Args: request (Request): Incoming request. """ csessid = cgi.escape(request.args['csessid'][0]) self.last_alive[csessid] = (time.time(...
{'deleted': [{'line_no': 10, 'char_start': 217, 'char_end': 266, 'line': " csessid = request.args.get('csessid')[0]\n"}, {'line_no': 11, 'char_start': 266, 'char_end': 267, 'line': '\n'}, {'line_no': 16, 'char_start': 433, 'char_end': 496, 'line': " cmdarray = json.loads(request.args.get('data')[0])\n...
{'deleted': [{'char_start': 247, 'char_end': 252, 'chars': '.get('}, {'char_start': 261, 'char_end': 262, 'chars': ')'}, {'char_start': 265, 'char_end': 266, 'chars': '\n'}], 'added': [{'char_start': 235, 'char_end': 246, 'chars': 'cgi.escape('}, {'char_start': 258, 'char_end': 259, 'chars': '['}, {'char_start': 268, '...
github.com/evennia/evennia/commit/300261529b82f95414c9d1d7150d6eda4695bb93
evennia/server/portal/webclient_ajax.py
cwe-079
145
false
true
false
cwe-079
index
def index(request, is_mobile=False): hue_collections = DashboardController(request.user).get_search_collections() collection_id = request.GET.get('collection') if not hue_collections or not collection_id: return admin_collections(request, True, is_mobile) try: collection_doc = Document2.objects.get(id...
def index(request, is_mobile=False): hue_collections = DashboardController(request.user).get_search_collections() collection_id = request.GET.get('collection') if not hue_collections or not collection_id: return admin_collections(request, True, is_mobile) try: collection_doc = Document2.objects.get(id...
{'deleted': [{'line_no': 22, 'char_start': 814, 'char_end': 863, 'line': " query['qs'][0]['q'] = request.GET.get('q')\n"}, {'line_no': 24, 'char_start': 891, 'char_end': 933, 'line': " query['qd'] = request.GET.get('qd')\n"}, {'line_no': 39, 'char_start': 1285, 'char_end': 1351, 'line': " 'is_owner': colle...
{'deleted': [], 'added': [{'char_start': 842, 'char_end': 850, 'chars': 'antixss('}, {'char_start': 869, 'char_end': 874, 'chars': ", '')"}, {'char_start': 924, 'char_end': 932, 'chars': 'antixss('}, {'char_start': 952, 'char_end': 957, 'chars': ", '')"}, {'char_start': 1326, 'char_end': 1394, 'chars': ' collection_doc...
github.com/gethue/hue/commit/37b529b1f9aeb5d746599a9ed4e2288cf3ad3e1d
desktop/libs/dashboard/src/dashboard/views.py
cwe-079
359
false
true
false
cwe-079
Logger::addMessage
void Logger::addMessage(const QString &message, const Log::MsgType &type) { QWriteLocker locker(&lock); Log::Msg temp = { msgCounter++, QDateTime::currentMSecsSinceEpoch(), type, message }; m_messages.push_back(temp); if (m_messages.size() >= MAX_LOG_MESSAGES) m_messages.pop_front(); emit...
void Logger::addMessage(const QString &message, const Log::MsgType &type) { QWriteLocker locker(&lock); Log::Msg temp = { msgCounter++, QDateTime::currentMSecsSinceEpoch(), type, Utils::String::toHtmlEscaped(message) }; m_messages.push_back(temp); if (m_messages.size() >= MAX_LOG_MESSAGES) m_m...
{'deleted': [{'line_no': 5, 'char_start': 109, 'char_end': 199, 'line': ' Log::Msg temp = { msgCounter++, QDateTime::currentMSecsSinceEpoch(), type, message };\n'}], 'added': [{'line_no': 5, 'char_start': 109, 'char_end': 229, 'line': ' Log::Msg temp = { msgCounter++, QDateTime::currentMSecsSinceEpoch(), type, Ut...
{'deleted': [], 'added': [{'char_start': 188, 'char_end': 217, 'chars': 'Utils::String::toHtmlEscaped('}, {'char_start': 224, 'char_end': 225, 'chars': ')'}]}
github.com/qbittorrent/qBittorrent/commit/6ca3e4f094da0a0017cb2d483ec1db6176bb0b16
src/base/logger.cpp
cwe-079
82
false
true
false
cwe-079
link_dialog
def link_dialog(request): # list of wiki pages name = request.values.get("pagename", "") if name: from MoinMoin import search # XXX error handling! searchresult = search.searchPages(request, 't:"%s"' % name) pages = [p.page_name for p in searchresult.hits] pages.sort...
def link_dialog(request): # list of wiki pages name = request.values.get("pagename", "") name_escaped = wikiutil.escape(name) if name: from MoinMoin import search # XXX error handling! searchresult = search.searchPages(request, 't:"%s"' % name) pages = [p.page_name for p...
{'deleted': [{'line_no': 100, 'char_start': 3711, 'char_end': 3789, 'line': ' <input id="txtPagename" name="pagename" size="30" value="%(name)s">\n'}], 'added': [{'line_no': 4, 'char_start': 97, 'char_end': 138, 'line': ' name_escaped = wikiutil.escape(name)\n'}, {'line_no': 101, 'char_start': 3752, 'char_e...
{'deleted': [], 'added': [{'char_start': 101, 'char_end': 142, 'chars': 'name_escaped = wikiutil.escape(name)\n '}, {'char_start': 3825, 'char_end': 3833, 'chars': '_escaped'}]}
github.com/moinwiki/moin-1.9/commit/70955a8eae091cc88fd9a6e510177e70289ec024
MoinMoin/action/fckdialog.py
cwe-079
1,565
false
true
false
cwe-079
subscribe_for_tags
@csrf.csrf_protect def subscribe_for_tags(request): """process subscription of users by tags""" #todo - use special separator to split tags tag_names = request.REQUEST.get('tags','').strip().split() pure_tag_names, wildcards = forms.clean_marked_tagnames(tag_names) if request.user.is_authenticated()...
@csrf.csrf_protect def subscribe_for_tags(request): """process subscription of users by tags""" #todo - use special separator to split tags tag_names = request.REQUEST.get('tags','').strip().split() pure_tag_names, wildcards = forms.clean_marked_tagnames(tag_names) if request.user.is_authenticated()...
{'deleted': [{'line_no': 22, 'char_start': 905, 'char_end': 984, 'line': " ) % {'url': request.path + '?tags=' + request.REQUEST['tags']}\n"}], 'added': [{'line_no': 22, 'char_start': 905, 'char_end': 992, 'line': " ) % {'url': escape(request.path) + '?tags=' + request.REQUEST['tags']}\n"}...
{'deleted': [], 'added': [{'char_start': 933, 'char_end': 940, 'chars': 'escape('}, {'char_start': 952, 'char_end': 953, 'chars': ')'}]}
github.com/ASKBOT/askbot-devel/commit/a676a86b6b7a5737d4da4f59f71e037406f88d29
askbot/views/commands.py
cwe-079
305
false
true
false
cwe-079
htmlvalue
def htmlvalue(self, val): return self.block.render_basic(val)
def htmlvalue(self, val): """ Return an HTML representation of this block that is safe to be included in comparison views """ return escape(text_from_html(self.block.render_basic(val)))
{'deleted': [{'line_no': 2, 'char_start': 30, 'char_end': 73, 'line': ' return self.block.render_basic(val)\n'}], 'added': [{'line_no': 2, 'char_start': 30, 'char_end': 42, 'line': ' """\n'}, {'line_no': 3, 'char_start': 42, 'char_end': 122, 'line': ' Return an HTML representation of this block tha...
{'deleted': [], 'added': [{'char_start': 38, 'char_end': 68, 'chars': '"""\n Return an HTML rep'}, {'char_start': 70, 'char_end': 73, 'chars': 'sen'}, {'char_start': 74, 'char_end': 117, 'chars': 'ation of this block that is safe to be incl'}, {'char_start': 118, 'char_end': 138, 'chars': 'ded\n in compa'...
github.com/wagtail/wagtail/commit/61045ceefea114c40ac4b680af58990dbe732389
wagtail/admin/compare.py
cwe-079
16
false
true
false
cwe-079
action_save_user
def action_save_user(request: HttpRequest, default_forward_url: str = "/admin/users"): """ This functions saves the changes to the user or adds a new one. It completely creates the HttpResponse :param request: the HttpRequest :param default_forward_url: The URL to forward to if nothing was specified ...
def action_save_user(request: HttpRequest, default_forward_url: str = "/admin/users"): """ This functions saves the changes to the user or adds a new one. It completely creates the HttpResponse :param request: the HttpRequest :param default_forward_url: The URL to forward to if nothing was specified ...
{'deleted': [{'line_no': 27, 'char_start': 1188, 'char_end': 1231, 'line': ' user.displayName = displayname\n'}, {'line_no': 29, 'char_start': 1260, 'char_end': 1291, 'line': ' user.notes = notes\n'}, {'line_no': 40, 'char_start': 1855, 'char_end': 1883, 'line': ' au.email = mail\n'}, {...
{'deleted': [], 'added': [{'char_start': 1219, 'char_end': 1226, 'chars': 'escape('}, {'char_start': 1237, 'char_end': 1238, 'chars': ')'}, {'char_start': 1293, 'char_end': 1300, 'chars': 'escape('}, {'char_start': 1305, 'char_end': 1306, 'chars': ')'}, {'char_start': 1894, 'char_end': 1901, 'chars': 'escape('}, {'char...
github.com/Technikradio/C3FOCSite/commit/6e330d4d44bbfdfce9993dffea97008276771600
c3shop/frontpage/management/edit_user.py
cwe-079
622
false
true
false
cwe-079
add_article_action
def add_article_action(request: HttpRequest, default_foreward_url: str): forward_url: str = default_foreward_url if request.GET.get("redirect"): forward_url = request.GET["redirect"] else: forward_url = "/admin" if "rid" not in request.GET: return HttpResponseRedirect("/admin?err...
def add_article_action(request: HttpRequest, default_foreward_url: str): forward_url: str = default_foreward_url if request.GET.get("redirect"): forward_url = request.GET["redirect"] else: forward_url = "/admin" if "rid" not in request.GET: return HttpResponseRedirect("/admin?err...
{'deleted': [{'line_no': 20, 'char_start': 954, 'char_end': 997, 'line': ' notes: str = request.POST["notes"]\n'}, {'line_no': 45, 'char_start': 2195, 'char_end': 2269, 'line': ' ar.notes = str(request.POST[str("notes_" + str(art.id))])\n'}], 'added': [{'line_no': 20, 'char_start': 954, 'char_end'...
{'deleted': [], 'added': [{'char_start': 975, 'char_end': 982, 'chars': 'escape('}, {'char_start': 1003, 'char_end': 1004, 'chars': ')'}, {'char_start': 2230, 'char_end': 2237, 'chars': 'escape('}, {'char_start': 2282, 'char_end': 2283, 'chars': ')'}]}
github.com/Technikradio/C3FOCSite/commit/6e330d4d44bbfdfce9993dffea97008276771600
c3shop/frontpage/management/reservation_actions.py
cwe-079
581
false
true
false
cwe-079
get_list_context
def get_list_context(context=None): list_context = frappe._dict( template = "templates/includes/blog/blog.html", get_list = get_blog_list, hide_filters = True, children = get_children(), # show_search = True, title = _('Blog') ) category = frappe.local.form_dict.blog_category or frappe.local.form_dict.c...
def get_list_context(context=None): list_context = frappe._dict( template = "templates/includes/blog/blog.html", get_list = get_blog_list, hide_filters = True, children = get_children(), # show_search = True, title = _('Blog') ) category = sanitize_html(frappe.local.form_dict.blog_category or frappe.loc...
{'deleted': [{'line_no': 11, 'char_start': 244, 'char_end': 328, 'line': '\tcategory = frappe.local.form_dict.blog_category or frappe.local.form_dict.category\n'}, {'line_no': 23, 'char_start': 768, 'char_end': 853, 'line': '\t\tlist_context.sub_title = _(\'Filtered by "{0}"\').format(frappe.local.form_dict.txt)\n'}], ...
{'deleted': [], 'added': [{'char_start': 256, 'char_end': 270, 'chars': 'sanitize_html('}, {'char_start': 341, 'char_end': 342, 'chars': ')'}, {'char_start': 840, 'char_end': 854, 'chars': 'sanitize_html('}, {'char_start': 880, 'char_end': 881, 'chars': ')'}]}
github.com/omirajkar/bench_frappe/commit/2fa19c25066ed17478d683666895e3266936aee6
frappe/website/doctype/blog_post/blog_post.py
cwe-079
290
false
true
false
cwe-079
__init__
def __init__(self, *args, **kwargs): """ Takes two additional keyword arguments: :param cartpos: The cart position the form should be for :param event: The event this belongs to """ cartpos = self.cartpos = kwargs.pop('cartpos', None) orderpos = self.orderpos...
def __init__(self, *args, **kwargs): """ Takes two additional keyword arguments: :param cartpos: The cart position the form should be for :param event: The event this belongs to """ cartpos = self.cartpos = kwargs.pop('cartpos', None) orderpos = self.orderpos...
{'deleted': [{'line_no': 55, 'char_start': 2264, 'char_end': 2323, 'line': ' label=q.question, required=q.required,\n'}, {'line_no': 61, 'char_start': 2531, 'char_end': 2590, 'line': ' label=q.question, required=q.required,\n'}, {'line_no': 68, 'char_start': 2853, 'char_end': 2912,...
{'deleted': [{'char_start': 1759, 'char_end': 1759, 'chars': ''}, {'char_start': 2290, 'char_end': 2294, 'chars': 'q.qu'}, {'char_start': 2295, 'char_end': 2300, 'chars': 'stion'}, {'char_start': 2557, 'char_end': 2561, 'chars': 'q.qu'}, {'char_start': 2562, 'char_end': 2567, 'chars': 'stion'}, {'char_start': 2879, 'ch...
github.com/pretix/pretix/commit/affc6254a8316643d4afe9e8b7f8cd288c86ca1f
src/pretix/base/forms/questions.py
cwe-079
1,143
false
true
false
cwe-079
is_safe_url
def is_safe_url(url, host=None): """ Return ``True`` if the url is a safe redirection (i.e. it doesn't point to a different host and uses a safe scheme). Always returns ``False`` on an empty url. """ if url is not None: url = url.strip() if not url: return False # Chrome...
def is_safe_url(url, host=None): """ Return ``True`` if the url is a safe redirection (i.e. it doesn't point to a different host and uses a safe scheme). Always returns ``False`` on an empty url. """ if url is not None: url = url.strip() if not url: return False # Chrome...
{'deleted': [{'line_no': 13, 'char_start': 346, 'char_end': 379, 'line': " url = url.replace('\\\\', '/')\n"}], 'added': [{'line_no': 14, 'char_start': 444, 'char_end': 525, 'line': " return _is_safe_url(url, host) and _is_safe_url(url.replace('\\\\', '/'), host)\n"}]}
{'deleted': [{'char_start': 345, 'char_end': 346, 'chars': '\n'}, {'char_start': 347, 'char_end': 396, 'chars': " url = url.replace('\\\\', '/')\n # Chrome cons"}, {'char_start': 397, 'char_end': 403, 'chars': 'ders a'}, {'char_start': 404, 'char_end': 405, 'chars': 'y'}, {'char_start': 406, 'char_end': 422, 'char...
github.com/django/django/commit/c5544d289233f501917e25970c03ed444abbd4f0
django/utils/http.py
cwe-079
325
false
true
false
cwe-079
PropertiesWidget::loadTorrentInfos
void PropertiesWidget::loadTorrentInfos(BitTorrent::TorrentHandle *const torrent) { clear(); m_torrent = torrent; downloaded_pieces->setTorrent(m_torrent); pieces_availability->setTorrent(m_torrent); if (!m_torrent) return; // Save path updateSavePath(m_torrent); // Hash hash_lbl->s...
void PropertiesWidget::loadTorrentInfos(BitTorrent::TorrentHandle *const torrent) { clear(); m_torrent = torrent; downloaded_pieces->setTorrent(m_torrent); pieces_availability->setTorrent(m_torrent); if (!m_torrent) return; // Save path updateSavePath(m_torrent); // Hash hash_lbl->s...
{'deleted': [{'line_no': 21, 'char_start': 655, 'char_end': 737, 'line': ' comment_text->setText(Utils::Misc::parseHtmlLinks(m_torrent->comment()));\n'}, {'line_no': 26, 'char_start': 784, 'char_end': 845, 'line': ' label_created_by_val->setText(m_torrent->creator());\n'}], 'added': [{'line_no': 21, 'char...
{'deleted': [], 'added': [{'char_start': 713, 'char_end': 742, 'chars': 'Utils::String::toHtmlEscaped('}, {'char_start': 761, 'char_end': 762, 'chars': ')'}, {'char_start': 852, 'char_end': 881, 'chars': 'Utils::String::toHtmlEscaped('}, {'char_start': 900, 'char_end': 901, 'chars': ')'}]}
github.com/qbittorrent/qBittorrent/commit/6ca3e4f094da0a0017cb2d483ec1db6176bb0b16
src/gui/properties/propertieswidget.cpp
cwe-079
275
false
true
false
cwe-079
Logger::addPeer
void Logger::addPeer(const QString &ip, bool blocked, const QString &reason) { QWriteLocker locker(&lock); Log::Peer temp = { peerCounter++, QDateTime::currentMSecsSinceEpoch(), ip, blocked, reason }; m_peers.push_back(temp); if (m_peers.size() >= MAX_LOG_MESSAGES) m_peers.pop_front(); em...
void Logger::addPeer(const QString &ip, bool blocked, const QString &reason) { QWriteLocker locker(&lock); Log::Peer temp = { peerCounter++, QDateTime::currentMSecsSinceEpoch(), Utils::String::toHtmlEscaped(ip), blocked, Utils::String::toHtmlEscaped(reason) }; m_peers.push_back(temp); if (m_peers.size...
{'deleted': [{'line_no': 5, 'char_start': 112, 'char_end': 210, 'line': ' Log::Peer temp = { peerCounter++, QDateTime::currentMSecsSinceEpoch(), ip, blocked, reason };\n'}], 'added': [{'line_no': 5, 'char_start': 112, 'char_end': 270, 'line': ' Log::Peer temp = { peerCounter++, QDateTime::currentMSecsSinceEpoch()...
{'deleted': [], 'added': [{'char_start': 187, 'char_end': 216, 'chars': 'Utils::String::toHtmlEscaped('}, {'char_start': 218, 'char_end': 219, 'chars': ')'}, {'char_start': 230, 'char_end': 259, 'chars': 'Utils::String::toHtmlEscaped('}, {'char_start': 265, 'char_end': 266, 'chars': ')'}]}
github.com/qbittorrent/qBittorrent/commit/6ca3e4f094da0a0017cb2d483ec1db6176bb0b16
src/base/logger.cpp
cwe-079
87
false
true
false
cwe-079
mode_receive
def mode_receive(self, request): """ This is called by render_POST when the client is telling us that it is ready to receive data as soon as it is available. This is the basis of a long-polling (comet) mechanism: the server will wait to reply until data is available. ...
def mode_receive(self, request): """ This is called by render_POST when the client is telling us that it is ready to receive data as soon as it is available. This is the basis of a long-polling (comet) mechanism: the server will wait to reply until data is available. ...
{'deleted': [{'line_no': 12, 'char_start': 389, 'char_end': 438, 'line': " csessid = request.args.get('csessid')[0]\n"}], 'added': [{'line_no': 12, 'char_start': 389, 'char_end': 446, 'line': " csessid = cgi.escape(request.args['csessid'][0])\n"}]}
{'deleted': [{'char_start': 419, 'char_end': 424, 'chars': '.get('}, {'char_start': 433, 'char_end': 434, 'chars': ')'}], 'added': [{'char_start': 407, 'char_end': 418, 'chars': 'cgi.escape('}, {'char_start': 430, 'char_end': 431, 'chars': '['}, {'char_start': 440, 'char_end': 441, 'chars': ']'}, {'char_start': 444, 'c...
github.com/evennia/evennia/commit/300261529b82f95414c9d1d7150d6eda4695bb93
evennia/server/portal/webclient_ajax.py
cwe-079
202
false
true
false
cwe-079
history_data
def history_data(start_time, offset=None): """Return history data. Arguments: start_time: select history starting from this timestamp. offset: number of items to skip """ # history atimes are stored as ints, ensure start_time is not a float start_time = int(start_time) hist = ob...
def history_data(start_time, offset=None): """Return history data. Arguments: start_time: select history starting from this timestamp. offset: number of items to skip """ # history atimes are stored as ints, ensure start_time is not a float start_time = int(start_time) hist = ob...
{'deleted': [{'line_no': 18, 'char_start': 603, 'char_end': 674, 'line': ' return [{"url": e.url, "title": e.title or e.url, "time": e.atime}\n'}, {'line_no': 19, 'char_start': 674, 'char_end': 703, 'line': ' for e in entries]\n'}], 'added': [{'line_no': 18, 'char_start': 603, 'char_end': 643, 'line': ' ...
{'deleted': [{'char_start': 673, 'char_end': 685, 'chars': '\n '}], 'added': [{'char_start': 623, 'char_end': 635, 'chars': 'html.escape('}, {'char_start': 640, 'char_end': 641, 'chars': ')'}, {'char_start': 642, 'char_end': 655, 'chars': '\n '}, {'char_start': 665, 'char_end': 677, 'chars': 'html....
github.com/qutebrowser/qutebrowser/commit/4c9360237f186681b1e3f2a0f30c45161cf405c7
qutebrowser/browser/qutescheme.py
cwe-079
177
false
true
false
cwe-079
edit_bundle
@check_document_access_permission() def edit_bundle(request): bundle_id = request.GET.get('bundle') doc = None if bundle_id: doc = Document2.objects.get(id=bundle_id) bundle = Bundle(document=doc) else: bundle = Bundle() coordinators = [dict([('uuid', d.content_object.uuid), ('name', d.content...
@check_document_access_permission() def edit_bundle(request): bundle_id = request.GET.get('bundle') doc = None if bundle_id: doc = Document2.objects.get(id=bundle_id) bundle = Bundle(document=doc) else: bundle = Bundle() coordinators = [dict([('uuid', d.content_object.uuid), ('name', d.content...
{'deleted': [{'line_no': 16, 'char_start': 498, 'char_end': 532, 'line': " 'bundle_json': bundle.json,\n"}, {'line_no': 17, 'char_start': 532, 'char_end': 585, 'line': " 'coordinators_json': json.dumps(coordinators),\n"}], 'added': [{'line_no': 16, 'char_start': 498, 'char_end': 543, 'line': " 'bundle_js...
{'deleted': [], 'added': [{'char_start': 530, 'char_end': 541, 'chars': '_for_html()'}, {'char_start': 593, 'char_end': 617, 'chars': ', cls=JSONEncoderForHTML'}]}
github.com/gethue/hue/commit/6641c62beaa1468082e47d82da5ed758d11c7735
apps/oozie/src/oozie/views/editor2.py
cwe-079
179
false
true
false
cwe-079
respond_error
def respond_error(self, context, exception): context.respond_server_error() stack = traceback.format_exc() return """ <html> <body> <style> body { font-family: sans-serif; color: #888; ...
def respond_error(self, context, exception): context.respond_server_error() stack = traceback.format_exc() return """ <html> <body> <style> body { font-family: sans-serif; color: #888; ...
{'deleted': [{'line_no': 33, 'char_start': 871, 'char_end': 890, 'line': ' """ % stack\n'}], 'added': [{'line_no': 33, 'char_start': 871, 'char_end': 902, 'line': ' """ % cgi.escape(stack)'}]}
{'deleted': [], 'added': [{'char_start': 885, 'char_end': 896, 'chars': 'cgi.escape('}, {'char_start': 901, 'char_end': 902, 'chars': ')'}]}
github.com/Eugeny/ajenti/commit/d3fc5eb142ff16d55d158afb050af18d5ff09120
ajenti/routing.py
cwe-079
153
false
true
false
cwe-079
DeletionConfirmationDlg::DeletionConfirmationDlg
DeletionConfirmationDlg(QWidget *parent, const int &size, const QString &name, bool defaultDeleteFiles): QDialog(parent) { setupUi(this); if (size == 1) label->setText(tr("Are you sure you want to delete '%1' from the transfer list?", "Are you sure you want to delete 'ubuntu-linux-iso' from the transfer...
DeletionConfirmationDlg(QWidget *parent, const int &size, const QString &name, bool defaultDeleteFiles): QDialog(parent) { setupUi(this); if (size == 1) label->setText(tr("Are you sure you want to delete '%1' from the transfer list?", "Are you sure you want to delete 'ubuntu-linux-iso' from the transfer...
{'deleted': [{'line_no': 4, 'char_start': 163, 'char_end': 341, 'line': ' label->setText(tr("Are you sure you want to delete \'%1\' from the transfer list?", "Are you sure you want to delete \'ubuntu-linux-iso\' from the transfer list?").arg(name));\n'}], 'added': [{'line_no': 4, 'char_start': 163, 'char_end': 371...
{'deleted': [], 'added': [{'char_start': 333, 'char_end': 362, 'chars': 'Utils::String::toHtmlEscaped('}, {'char_start': 366, 'char_end': 367, 'chars': ')'}]}
github.com/qbittorrent/qBittorrent/commit/6ca3e4f094da0a0017cb2d483ec1db6176bb0b16
src/gui/deletionconfirmationdlg.h
cwe-079
259
false
true
false
cwe-079
init_settings
def init_settings(self, ipython_app, kernel_manager, contents_manager, cluster_manager, session_manager, kernel_spec_manager, config_manager, log, base_url, default_url, settings_overrides, jinja_env_options=None): _tem...
def init_settings(self, ipython_app, kernel_manager, contents_manager, cluster_manager, session_manager, kernel_spec_manager, config_manager, log, base_url, default_url, settings_overrides, jinja_env_options=None): _tem...
{'deleted': [{'line_no': 15, 'char_start': 629, 'char_end': 695, 'line': ' jenv_opt = jinja_env_options if jinja_env_options else {}\n'}], 'added': [{'line_no': 15, 'char_start': 629, 'char_end': 669, 'line': ' jenv_opt = {"autoescape": True}\n'}, {'line_no': 16, 'char_start': 669, 'char_end': 741, 'line'...
{'deleted': [], 'added': [{'char_start': 648, 'char_end': 693, 'chars': '{"autoescape": True}\n jenv_opt.update('}, {'char_start': 739, 'char_end': 741, 'chars': ')\n'}]}
github.com/ipython/ipython/commit/3ab41641cf6fce3860c73d5cf4645aa12e1e5892
IPython/html/notebookapp.py
cwe-079
546
false
true
false
cwe-079
get
@handler.unsupported_on_local_server @handler.get(handler.HTML) def get(self): """Handle a get request.""" self.render( 'login.html', { 'apiKey': local_config.ProjectConfig().get('firebase.api_key'), 'authDomain': auth.auth_domain(), 'dest': self.request.get('de...
@handler.unsupported_on_local_server @handler.get(handler.HTML) def get(self): """Handle a get request.""" dest = self.request.get('dest') base_handler.check_redirect_url(dest) self.render( 'login.html', { 'apiKey': local_config.ProjectConfig().get('firebase.api_key'), ...
{'deleted': [{'line_no': 9, 'char_start': 280, 'char_end': 326, 'line': " 'dest': self.request.get('dest'),\n"}], 'added': [{'line_no': 5, 'char_start': 117, 'char_end': 153, 'line': " dest = self.request.get('dest')\n"}, {'line_no': 6, 'char_start': 153, 'char_end': 195, 'line': ' base_handler.check_r...
{'deleted': [{'char_start': 300, 'char_end': 318, 'chars': "self.request.get('"}, {'char_start': 322, 'char_end': 324, 'chars': "')"}], 'added': [{'char_start': 121, 'char_end': 200, 'chars': "dest = self.request.get('dest')\n base_handler.check_redirect_url(dest)\n\n "}]}
github.com/google/clusterfuzz/commit/3d66c1146550eecd4e34d47332a8616b435a21fe
src/appengine/handlers/login.py
cwe-079
74
false
true
false
cwe-079
commentcounts
@register.tag @basictag(takes_context=True) def commentcounts(context, filediff, interfilediff=None): """ Returns a JSON array of current comments for a filediff, sorted by line number. Each entry in the array has a dictionary containing the following keys: =========== ==========================...
@register.tag @basictag(takes_context=True) def commentcounts(context, filediff, interfilediff=None): """ Returns a JSON array of current comments for a filediff, sorted by line number. Each entry in the array has a dictionary containing the following keys: =========== ==========================...
{'deleted': [{'line_no': 41, 'char_start': 1548, 'char_end': 1586, 'line': " 'text': comment.text,\n"}], 'added': [{'line_no': 41, 'char_start': 1548, 'char_end': 1594, 'line': " 'text': escape(comment.text),\n"}]}
{'deleted': [], 'added': [{'char_start': 1572, 'char_end': 1579, 'chars': 'escape('}, {'char_start': 1591, 'char_end': 1592, 'chars': ')'}]}
github.com/reviewboard/reviewboard/commit/7a0a9d94555502278534dedcf2d75e9fccce8c3d
reviewboard/reviews/templatetags/reviewtags.py
cwe-079
469
false
true
false
cwe-079
edit_workflow
@check_document_access_permission() def edit_workflow(request): workflow_id = request.GET.get('workflow') if workflow_id: wid = {} if workflow_id.isdigit(): wid['id'] = workflow_id else: wid['uuid'] = workflow_id doc = Document2.objects.get(type='oozie-workflow2', **wid) workflow ...
@check_document_access_permission() def edit_workflow(request): workflow_id = request.GET.get('workflow') if workflow_id: wid = {} if workflow_id.isdigit(): wid['id'] = workflow_id else: wid['uuid'] = workflow_id doc = Document2.objects.get(type='oozie-workflow2', **wid) workflow ...
{'deleted': [{'line_no': 30, 'char_start': 743, 'char_end': 801, 'line': " 'layout_json': json.dumps(workflow_data['layout']),\n"}, {'line_no': 31, 'char_start': 801, 'char_end': 863, 'line': " 'workflow_json': json.dumps(workflow_data['workflow']),\n"}, {'line_no': 32, 'char_start': 863, 'char_end': 933, 'li...
{'deleted': [], 'added': [{'char_start': 798, 'char_end': 822, 'chars': ', cls=JSONEncoderForHTML'}, {'char_start': 884, 'char_end': 908, 'chars': ', cls=JSONEncoderForHTML'}, {'char_start': 978, 'char_end': 1002, 'chars': ', cls=JSONEncoderForHTML'}, {'char_start': 1074, 'char_end': 1098, 'chars': ', cls=JSONEncoderFo...
github.com/gethue/hue/commit/6641c62beaa1468082e47d82da5ed758d11c7735
apps/oozie/src/oozie/views/editor2.py
cwe-079
284
false
true
false
cwe-079
nav_path
def nav_path(request): """Return current path as list of items with "name" and "href" members The href members are view_directory links for directories and view_log links for files, but are set to None when the link would point to the current view""" if not request.repos: return [] is_dir = request.p...
def nav_path(request): """Return current path as list of items with "name" and "href" members The href members are view_directory links for directories and view_log links for files, but are set to None when the link would point to the current view""" if not request.repos: return [] is_dir = request.p...
{'deleted': [{'line_no': 28, 'char_start': 897, 'char_end': 936, 'line': ' item = _item(name=part, href=None)\n'}], 'added': [{'line_no': 28, 'char_start': 897, 'char_end': 959, 'line': ' item = _item(name=request.server.escape(part), href=None)\n'}]}
{'deleted': [], 'added': [{'char_start': 919, 'char_end': 941, 'chars': 'request.server.escape('}, {'char_start': 945, 'char_end': 946, 'chars': ')'}]}
github.com/viewvc/viewvc/commit/9dcfc7daa4c940992920d3b2fbd317da20e44aad
lib/viewvc.py
cwe-079
330
false
true
false
cwe-079
PeerListWidget::addPeer
QStandardItem* PeerListWidget::addPeer(const QString& ip, BitTorrent::TorrentHandle *const torrent, const BitTorrent::PeerInfo &peer) { int row = m_listModel->rowCount(); // Adding Peer to peer list m_listModel->insertRow(row); m_listModel->setData(m_listModel->index(row, PeerListDelegate::IP), ip); ...
QStandardItem* PeerListWidget::addPeer(const QString& ip, BitTorrent::TorrentHandle *const torrent, const BitTorrent::PeerInfo &peer) { int row = m_listModel->rowCount(); // Adding Peer to peer list m_listModel->insertRow(row); m_listModel->setData(m_listModel->index(row, PeerListDelegate::IP), ip); ...
{'deleted': [{'line_no': 24, 'char_start': 1441, 'char_end': 1533, 'line': ' m_listModel->setData(m_listModel->index(row, PeerListDelegate::CLIENT), peer.client());\n'}], 'added': [{'line_no': 24, 'char_start': 1441, 'char_end': 1563, 'line': ' m_listModel->setData(m_listModel->index(row, PeerListDelegate::CLIENT...
{'deleted': [], 'added': [{'char_start': 1517, 'char_end': 1546, 'chars': 'Utils::String::toHtmlEscaped('}, {'char_start': 1558, 'char_end': 1559, 'chars': ')'}]}
github.com/qbittorrent/qBittorrent/commit/6ca3e4f094da0a0017cb2d483ec1db6176bb0b16
src/gui/properties/peerlistwidget.cpp
cwe-079
621
false
true
false
cwe-079
manipulate_reservation_action
def manipulate_reservation_action(request: HttpRequest, default_foreward_url: str): """ This function is used to alter the reservation beeing build inside a cookie. This function automatically crafts the required response. """ js_string: str = "" r: GroupReservation = None u: Profile = get_c...
def manipulate_reservation_action(request: HttpRequest, default_foreward_url: str): """ This function is used to alter the reservation beeing build inside a cookie. This function automatically crafts the required response. """ js_string: str = "" r: GroupReservation = None u: Profile = get_c...
{'deleted': [{'line_no': 22, 'char_start': 869, 'char_end': 914, 'line': ' sr.notes = request.POST["notes"]\n'}, {'line_no': 42, 'char_start': 1748, 'char_end': 1788, 'line': ' r.notes = request.POST["notes"]\n'}, {'line_no': 44, 'char_start': 1824, 'char_end': 1883, 'line': ' r.responsiblePers...
{'deleted': [], 'added': [{'char_start': 892, 'char_end': 899, 'chars': 'escape('}, {'char_start': 920, 'char_end': 921, 'chars': ')'}, {'char_start': 1774, 'char_end': 1781, 'chars': 'escape('}, {'char_start': 1802, 'char_end': 1803, 'chars': ')'}, {'char_start': 1870, 'char_end': 1877, 'chars': 'escape('}, {'char_sta...
github.com/Technikradio/C3FOCSite/commit/6e330d4d44bbfdfce9993dffea97008276771600
c3shop/frontpage/management/reservation_actions.py
cwe-079
479
false
true
false
cwe-079
HPHP::WddxPacket::recursiveAddVar
bool WddxPacket::recursiveAddVar(const String& varName, const Variant& varVariant, bool hasVarTag) { bool isArray = varVariant.isArray(); bool isObject = varVariant.isObject(); if (isArray || isObject) { if (hasVarTag) { m_packetString ...
bool WddxPacket::recursiveAddVar(const String& varName, const Variant& varVariant, bool hasVarTag) { bool isArray = varVariant.isArray(); bool isObject = varVariant.isObject(); if (isArray || isObject) { if (hasVarTag) { m_packetString ...
{'deleted': [{'line_no': 68, 'char_start': 2068, 'char_end': 2125, 'line': ' std::string varValue = varVariant.toString().data();\n'}], 'added': [{'line_no': 68, 'char_start': 2068, 'char_end': 2094, 'line': ' std::string varValue;\n'}, {'line_no': 71, 'char_start': 2197, 'char_end': 2210, 'line': ' } else {\n...
{'deleted': [{'char_start': 2092, 'char_end': 2123, 'chars': ' = varVariant.toString().data()'}, {'char_start': 2168, 'char_end': 2168, 'chars': ''}], 'added': [{'char_start': 2094, 'char_end': 2094, 'chars': ''}, {'char_start': 2195, 'char_end': 2421, 'chars': ';\n } else {\n varValue = StringUtil::HtmlEncode(...
github.com/facebook/hhvm/commit/324701c9fd31beb4f070f1b7ef78b115fbdfec34
hphp/runtime/ext/wddx/ext_wddx.cpp
cwe-079
573
false
true
false
cwe-079
make_eb_config
def make_eb_config(application_name, default_region): # Capture our current directory UTILS_DIR = os.path.dirname(os.path.abspath(__file__)) # Create the jinja2 environment. # Notice the use of trim_blocks, which greatly helps control whitespace. j2_env = Environment(loader=FileSystemLoader(UTILS_DI...
def make_eb_config(application_name, default_region): # Capture our current directory UTILS_DIR = os.path.dirname(os.path.abspath(__file__)) # Create the jinja2 environment. # Notice the use of trim_blocks, which greatly helps control whitespace. j2_env = Environment(loader=FileSystemLoader(UTILS_DI...
{'deleted': [{'line_no': 6, 'char_start': 263, 'char_end': 324, 'line': ' j2_env = Environment(loader=FileSystemLoader(UTILS_DIR))\n'}], 'added': [{'line_no': 6, 'char_start': 263, 'char_end': 341, 'line': ' j2_env = Environment(loader=FileSystemLoader(UTILS_DIR), autoescape=True)\n'}]}
{'deleted': [], 'added': [{'char_start': 322, 'char_end': 339, 'chars': ', autoescape=True'}]}
github.com/OkunaOrg/okuna-www-api/commit/8c40c66ea7c483a0cbda4c21940180af909aab99
utils/make_eb_config.py
cwe-079
102
false
true
false
cwe-079
get_context_data
def get_context_data(self, *args, **kwargs): data = super().get_context_data(*args, **kwargs) if self.request.GET.get('back', None) is not None: data['back_link'] = self.request.GET['back'] return data
def get_context_data(self, *args, **kwargs): data = super().get_context_data(*args, **kwargs) back = self.request.GET.get('back', None) parsed_back_url = urllib.parse.urlparse(back) # We only allow blank scheme, e.g. relative urls to avoid reflected XSS if back is not None ...
{'deleted': [{'line_no': 4, 'char_start': 107, 'char_end': 166, 'line': " if self.request.GET.get('back', None) is not None:\n"}, {'line_no': 5, 'char_start': 166, 'char_end': 223, 'line': " data['back_link'] = self.request.GET['back']\n"}], 'added': [{'line_no': 4, 'char_start': 107, 'char_end': 157,...
{'deleted': [{'char_start': 115, 'char_end': 117, 'chars': 'if'}, {'char_start': 198, 'char_end': 216, 'chars': "self.request.GET['"}, {'char_start': 220, 'char_end': 222, 'chars': "']"}], 'added': [{'char_start': 115, 'char_end': 121, 'chars': 'back ='}, {'char_start': 156, 'char_end': 307, 'chars': '\n parsed_...
github.com/pirati-web/socialnisystem.cz/commit/1bd25d971ac3f9ac7ae3915cc2dd86b0ceb44b53
socialsystem/core/views.py
cwe-079
58
false
true
false
cwe-079
simple_search
@classmethod def simple_search(cls, query, using=None, index=None): es_search = cls.search(using=using, index=index) es_query = cls.get_es_query(query=query) highlighted_fields = [f.split('^', 1)[0] for f in cls.search_fields] es_search = es_search.query(es_query).highlight(*hig...
@classmethod def simple_search(cls, query, using=None, index=None): """ Do a search without facets. This is used in: * The Docsearch API * The Project Admin Search page """ es_search = cls.search(using=using, index=index) es_search = es_search.h...
{'deleted': [{'line_no': 6, 'char_start': 259, 'char_end': 260, 'line': '\n'}], 'added': [{'line_no': 3, 'char_start': 76, 'char_end': 88, 'line': ' """\n'}, {'line_no': 4, 'char_start': 88, 'char_end': 124, 'line': ' Do a search without facets.\n'}, {'line_no': 5, 'char_start': 124, 'char_end': 125, 'lin...
{'deleted': [{'char_start': 259, 'char_end': 260, 'chars': '\n'}], 'added': [{'char_start': 84, 'char_end': 240, 'chars': '"""\n Do a search without facets.\n\n This is used in:\n\n * The Docsearch API\n * The Project Admin Search page\n """\n\n '}, {'char_start': 289, 'char_en...
github.com/readthedocs/readthedocs.org/commit/1ebe494ffde18109307f205d2bd94102452f697a
readthedocs/search/documents.py
cwe-079
83
false
true
false
cwe-079
null
QStandardItem* PeerListWidget::insertNewPeer(const QString& ipAddress, BitTorrent::TorrentHandle *const torrentInstance, const BitTorrent::PeerInfo &peerInfo) { int rowIndex = m_listModel->rowCount() + 0; m_listModel->insertRow(rowIndex); m_listModel->setData(m_listModel->index(rowIndex, PeerListDeleg...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
QStandardItem* PeerListWidget::appendPeerEntry(const QString& ipAddr, BitTorrent::TorrentHandle *const torrentObj, const BitTorrent::PeerInfo &peerDetails) { int newRow = m_listModel->rowCount(); m_listModel->insertRow(newRow); m_listModel->setData(m_listModel->index(newRow, PeerListDelegate::IP), ipA...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
QStandardItem* PeerListWidget::populatePeerList(const QString& ipAddress, BitTorrent::TorrentHandle *const torrentData, const BitTorrent::PeerInfo &peerInfo) { int currentRow = m_listModel->rowCount(); m_listModel->insertRow(currentRow); m_listModel->setData(m_listModel->index(currentRow, PeerListDele...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
QStandardItem* PeerListWidget::updatePeerList(const QString& ip, BitTorrent::TorrentHandle *const torrent, const BitTorrent::PeerInfo &peer) { int rowPosition = m_listModel->rowCount(); m_listModel->insertRow(rowPosition); m_listModel->setData(m_listModel->index(rowPosition, PeerListDelegate::IP), ip)...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
QStandardItem* PeerListWidget::addPeerEntry(const QString& ip, BitTorrent::TorrentHandle *const torrent, const BitTorrent::PeerInfo &peer) { int rowIdx = m_listModel->rowCount(); m_listModel->insertRow(rowIdx); m_listModel->setData(m_listModel->index(rowIdx, PeerListDelegate::IP), ip); m_listModel...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
QStandardItem* PeerListWidget::insertPeerInfo(const QString& ipAddress, BitTorrent::TorrentHandle *const torrent, const BitTorrent::PeerInfo &peer) { int rowNumber = m_listModel->rowCount(); m_listModel->insertRow(rowNumber); m_listModel->setData(m_listModel->index(rowNumber, PeerListDelegate::IP), ip...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
QStandardItem* PeerListWidget::addPeerRecord(const QString& ip, BitTorrent::TorrentHandle *const torrent, const BitTorrent::PeerInfo &peer) { int rowIndex = m_listModel->rowCount() + 0; m_listModel->insertRow(rowIndex); m_listModel->setData(m_listModel->index(rowIndex, PeerListDelegate::IP), ip); ...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
QStandardItem* PeerListWidget::registerPeer(const QString& ip, BitTorrent::TorrentHandle *const torrent, const BitTorrent::PeerInfo &peer) { int rowPos = m_listModel->rowCount(); m_listModel->insertRow(rowPos); m_listModel->setData(m_listModel->index(rowPos, PeerListDelegate::IP), ip); m_listModel...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
QStandardItem* PeerListWidget::createPeerEntry(const QString& ipAddress, BitTorrent::TorrentHandle *const torrent, const BitTorrent::PeerInfo &peer) { int rowNumber = m_listModel->rowCount(); m_listModel->insertRow(rowNumber); m_listModel->setData(m_listModel->index(rowNumber, PeerListDelegate::IP), i...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def generate_eb_config(app_name, region): TOOL_PATH = os.path.dirname(os.path.abspath(__file__)) env = Environment(loader=FileSystemLoader(TOOL_PATH)) template = env.get_template('templates/eb/config.yml') return template.render(APPLICATION_NAME=app_name, DEFAULT_REGION=region)
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def create_eb_configuration(app_name, region): SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) jinja_env = Environment(loader=FileSystemLoader(SCRIPT_DIR)) config_template = jinja_env.get_template('templates/eb/config.yml') return config_template.render(APPLICATION_NAME=app_name, DEFAULT_REGION...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def setup_eb_config(application_name, default_region): CURRENT_DIR = os.path.dirname(os.path.abspath(__file__)) environment = Environment(loader=FileSystemLoader(CURRENT_DIR)) template_file = environment.get_template('templates/eb/config.yml') return template_file.render(APPLICATION_NAME=application_na...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def configure_eb(application_name, default_region): BASE_DIR = os.path.dirname(os.path.abspath(__file__)) j2_environment = Environment(loader=FileSystemLoader(BASE_DIR)) template = j2_environment.get_template('templates/eb/config.yml') return template.render(APPLICATION_NAME=application_name, DEFAULT_R...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def build_eb_config(application_name, default_region): PROJECT_DIR = os.path.dirname(os.path.abspath(__file__)) jinja_env = Environment(loader=FileSystemLoader(PROJECT_DIR)) config_template = jinja_env.get_template('templates/eb/config.yml') return config_template.render(APPLICATION_NAME=application_na...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def prepare_eb_config(application_name, default_region): APP_DIR = os.path.dirname(os.path.abspath(__file__)) environment = Environment(loader=FileSystemLoader(APP_DIR)) template = environment.get_template('templates/eb/config.yml') return template.render(APPLICATION_NAME=application_name, DEFAULT_REGI...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def render_eb_config(application_name, default_region): DIR_PATH = os.path.dirname(os.path.abspath(__file__)) env = Environment(loader=FileSystemLoader(DIR_PATH)) template = env.get_template('templates/eb/config.yml') return template.render(APPLICATION_NAME=application_name, DEFAULT_REGION=default_regi...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def handle_session(self, req): session_id = req.args.get('csessid')[0] self.active_sessions[session_id] = (time.time(), False) return '""'
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def process_request(self, query): client_session = query.args.get('csessid')[0] self.session_timestamps[client_session] = (time.time(), False) return '""'
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def update_activity(self, request_data): session_identifier = request_data.args.get('csessid')[0] self.recent_activities[session_identifier] = (time.time(), False) return '""'
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def keep_session_active(self, incoming_request): session_code = incoming_request.args.get('csessid')[0] self.session_records[session_code] = (time.time(), False) return '""'
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def refresh_session(self, web_request): session_key = web_request.args.get('csessid')[0] self.session_updates[session_key] = (time.time(), False) return '""'
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def maintain_session(self, http_request): session_token = http_request.args.get('csessid')[0] self.session_states[session_token] = (time.time(), False) return '""'
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def renew_session(self, user_request): session_label = user_request.args.get('csessid')[0] self.session_logs[session_label] = (time.time(), False) return '""'
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def preserve_session(self, client_query): session_name = client_query.args.get('csessid')[0] self.session_entries[session_name] = (time.time(), False) return '""'
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def extend_session(self, server_request): session_tag = server_request.args.get('csessid')[0] self.session_info[session_tag] = (time.time(), False) return '""'
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def retain_session(self, data_request): session_handle = data_request.args.get('csessid')[0] self.session_cache[session_handle] = (time.time(), False) return '""'
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def create_link_dialog(req): page_title = req.values.get("pagename", "") if page_title: from MoinMoin import search search_outcome = search.searchPages(req, 't:"%s"' % page_title) page_titles = [p.page_name for p in search_outcome.hits] page_titles.sort() page_titles.ins...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def display_link_dialog(req): page_identifier = req.values.get("pagename", "") if page_identifier: from MoinMoin import search search_result = search.searchPages(req, 't:"%s"' % page_identifier) page_identifiers = [p.page_name for p in search_result.hits] page_identifiers.sort()...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def render_link_dialog(req): page_name = req.values.get("pagename", "") if page_name: from MoinMoin import search search_results = search.searchPages(req, 't:"%s"' % page_name) page_names = [p.page_name for p in search_results.hits] page_names.sort() page_names.insert(0,...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def show_link_dialog(req): page_title = req.values.get("pagename", "") if page_title: from MoinMoin import search search_result = search.searchPages(req, 't:"%s"' % page_title) page_titles = [p.page_name for p in search_result.hits] page_titles.sort() page_titles.insert(...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def build_link_dialog(req): page_name = req.values.get("pagename", "") if page_name: from MoinMoin import search search_results = search.searchPages(req, 't:"%s"' % page_name) page_names = [p.page_name for p in search_results.hits] page_names.sort() page_names.insert(0, ...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def construct_link_dialog(req): page_title = req.values.get("pagename", "") if page_title: from MoinMoin import search search_result = search.searchPages(req, 't:"%s"' % page_title) page_titles = [p.page_name for p in search_result.hits] page_titles.sort() page_titles.in...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def produce_link_dialog(req): page_name = req.values.get("pagename", "") if page_name: from MoinMoin import search search_results = search.searchPages(req, 't:"%s"' % page_name) page_names = [p.page_name for p in search_results.hits] page_names.sort() page_names.insert(0...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def formulate_link_dialog(req): page_name = req.values.get("pagename", "") if page_name: from MoinMoin import search search_results = search.searchPages(req, 't:"%s"' % page_name) page_names = [p.page_name for p in search_results.hits] page_names.sort() page_names.insert...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def assemble_link_dialog(req): page_name = req.values.get("pagename", "") if page_name: from MoinMoin import search search_results = search.searchPages(req, 't:"%s"' % page_name) page_names = [p.page_name for p in search_results.hits] page_names.sort() page_names.insert(...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
@register.tag @basictag(takes_context=True) def fetch_comments(context, diff_file, inter_diff=None): result_dict = {} current_user = context.get('user', None) if inter_diff: search_query = Comment.objects.filter(filediff=diff_file, interfilediff=inter_diff) else: search_query = Comment...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
@register.tag @basictag(takes_context=True) def process_comments(ctx, file_diff, inter_diff=None): comment_map = {} active_user = ctx.get('user', None) if inter_diff: db_query = Comment.objects.filter(filediff=file_diff, interfilediff=inter_diff) else: db_query = Comment.objects.filter...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
@register.tag @basictag(takes_context=True) def gather_comments(context, diff_file, inter_diff=None): comments_by_line = {} user_info = context.get('user', None) if inter_diff: filter_query = Comment.objects.filter(filediff=diff_file, interfilediff=inter_diff) else: filter_query = Comm...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
@register.tag @basictag(takes_context=True) def extract_comments(context_data, file_diff, inter_diff=None): comments_index = {} user_details = context_data.get('user', None) if inter_diff: search_criteria = Comment.objects.filter(filediff=file_diff, interfilediff=inter_diff) else: sear...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
@register.tag @basictag(takes_context=True) def compile_comments(context, file_diff, inter_diff=None): comment_storage = {} user_profile = context.get('user', None) if inter_diff: lookup_query = Comment.objects.filter(filediff=file_diff, interfilediff=inter_diff) else: lookup_query = C...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
@register.tag @basictag(takes_context=True) def retrieve_comments(context, file_diff, inter_diff=None): comment_accumulator = {} user_account = context.get('user', None) if inter_diff: query_set = Comment.objects.filter(filediff=file_diff, interfilediff=inter_diff) else: query_set = Co...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
@register.tag @basictag(takes_context=True) def compile_comment_data(context, file_diff, inter_diff=None): comment_database = {} user_identity = context.get('user', None) if inter_diff: search_parameters = Comment.objects.filter(filediff=file_diff, interfilediff=inter_diff) else: searc...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
@register.tag @basictag(takes_context=True) def generate_comments(context, file_diff, inter_diff=None): comment_index = {} user_info = context.get('user', None) if inter_diff: filter_criteria = Comment.objects.filter(filediff=file_diff, interfilediff=inter_diff) else: filter_criteria =...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
@register.tag @basictag(takes_context=True) def aggregate_comments(context, file_diff, inter_diff=None): comment_records = {} user_context = context.get('user', None) if inter_diff: query_conditions = Comment.objects.filter(filediff=file_diff, interfilediff=inter_diff) else: query_cond...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def handle_exception(self, ctx, ex): ctx.respond_server_error() error_trace = traceback.format_exc() return """ <html> <body> <style> body { font-family: sans-serif; color: #888; text-align: center; ...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def process_error(self, request, err): request.respond_server_error() trace_info = traceback.format_exc() return """ <html> <body> <style> body { font-family: sans-serif; color: #888; text-align: center; ...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def send_error_response(self, env, e): env.respond_server_error() stack_trace = traceback.format_exc() return """ <html> <body> <style> body { font-family: sans-serif; color: #888; text-align: center; ...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def generate_error_page(self, data, issue): data.respond_server_error() error_details = traceback.format_exc() return """ <html> <body> <style> body { font-family: sans-serif; color: #888; text-align: cente...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def create_error_response(self, info, fault): info.respond_server_error() stack_data = traceback.format_exc() return """ <html> <body> <style> body { font-family: sans-serif; color: #888; text-align: center...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def error_handling(self, req, exc): req.respond_server_error() error_stack = traceback.format_exc() return """ <html> <body> <style> body { font-family: sans-serif; color: #888; text-align: center; ...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def display_error(self, session, error): session.respond_server_error() stack_info = traceback.format_exc() return """ <html> <body> <style> body { font-family: sans-serif; color: #888; text-align: center; ...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def manage_error(self, config, fault): config.respond_server_error() trace_result = traceback.format_exc() return """ <html> <body> <style> body { font-family: sans-serif; color: #888; text-align: center; ...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def log_error(self, settings, issue): settings.respond_server_error() stack_dump = traceback.format_exc() return """ <html> <body> <style> body { font-family: sans-serif; color: #888; text-align: center; ...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def retrieve_articles(self, **options): query_set = Article.objects.order_by('-time') for article in query_set: article.md = markdown(article.content, extensions=[ 'markdown.extensions.extra', 'markdown.extensions.codehilite', 'markdown.extensions.toc', ]) ...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def load_articles(self, **filters): data_set = Article.objects.order_by('-time') for entry in data_set: entry.md = markdown(entry.content, extensions=[ 'markdown.extensions.extra', 'markdown.extensions.codehilite', 'markdown.extensions.toc', ]) return dat...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def collect_articles(self, **arguments): result_set = Article.objects.order_by('-time') for record in result_set: record.md = markdown(record.content, extensions=[ 'markdown.extensions.extra', 'markdown.extensions.codehilite', 'markdown.extensions.toc', ]) ...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
def gather_articles(self, **parameters): collection = Article.objects.order_by('-time') for obj in collection: obj.md = markdown(obj.content, extensions=[ 'markdown.extensions.extra', 'markdown.extensions.codehilite', 'markdown.extensions.toc', ]) return ...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
DeletionConfirmationDialog(QWidget *parentWidget, const int &itemCount, const QString &itemName, bool defaultRemoveFiles): QDialog(parentWidget) { setupUi(this); if (itemCount == 1) label->setText(tr("Are you sure you want to delete '%1' from the transfer list?", "Are you sure you want to delete 'ubunt...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
DeletionConfirmDlg(QWidget *parentWindow, const int &numItems, const QString &fileName, bool defaultEraseFiles): QDialog(parentWindow) { setupUi(this); if (numItems == 1) label->setText(tr("Are you sure you want to delete '%1' from the transfer list?", "Are you sure you want to delete 'ubuntu-linux-iso...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
DeleteConfirmationDlg(QWidget *parentWidget, const int &fileCount, const QString &torrentName, bool defaultDelFiles): QDialog(parentWidget) { setupUi(this); if (fileCount == 1) label->setText(tr("Are you sure you want to delete '%1' from the transfer list?", "Are you sure you want to delete 'ubuntu-lin...
null
null
null
null
null
null
null
true
true
false
cwe-079
null
DeleteConfirmDialog(QWidget *parent, const int &count, const QString &name, bool defaultDelete): QDialog(parent) { setupUi(this); if (count == 1) label->setText(tr("Are you sure you want to delete '%1' from the transfer list?", "Are you sure you want to delete 'ubuntu-linux-iso' from the transfer list?...
null
null
null
null
null
null
null
true
true
false