Datasets:

Modalities:
Text
Formats:
json
Languages:
code
Size:
< 1K
Tags:
code
Libraries:
Datasets
pandas
License:
File size: 787 Bytes
eb67da4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
 * Copyright (c) 2012 David Iwanowitsch <david at unclouded dot de>
 * This file is licensed under the Affero General Public License version 3 or
 * later.
 * See the COPYING-README file.
 */
$(document).ready(function(){
	OC.search.customResults['Bookm.'] = function(row,item){
		var a=row.find('a');
		a.attr('target','_blank');
		a.click(recordClick);
	}
});

function recordClick(event) {
	var jsFileLocation = $('script[src*=bookmarksearch]').attr('src');
	jsFileLocation = jsFileLocation.replace('js/bookmarksearch.js', '');
	$.ajax({
		// BUG: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
		// 
		// FIXED:
		type: 'POST',
		url: jsFileLocation + 'ajax/recordClick.php',
		data: 'url=' + encodeURI($(this).attr('href')),
	});	
}