mirror of
				https://github.com/searxng/searxng.git
				synced 2025-11-03 19:17:07 -05:00 
			
		
		
		
	[fix] query escaping in rss/opensearch output
This commit is contained in:
		
							parent
							
								
									16bdc0baf4
								
							
						
					
					
						commit
						39f5035e13
					
				@ -3,14 +3,14 @@
 | 
				
			|||||||
     xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
 | 
					     xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
 | 
				
			||||||
     xmlns:atom="http://www.w3.org/2005/Atom">
 | 
					     xmlns:atom="http://www.w3.org/2005/Atom">
 | 
				
			||||||
  <channel>
 | 
					  <channel>
 | 
				
			||||||
    <title>Searx search: {{ q }}</title>
 | 
					    <title>Searx search: {{ q|e }}</title>
 | 
				
			||||||
    <link>{{ base_url }}?q={{ q }}</link>
 | 
					    <link>{{ base_url }}?q={{ q|e }}</link>
 | 
				
			||||||
    <description>Search results for "{{ q }}" - searx</description>
 | 
					    <description>Search results for "{{ q|e }}" - searx</description>
 | 
				
			||||||
    <opensearch:totalResults>{{ number_of_results }}</opensearch:totalResults>
 | 
					    <opensearch:totalResults>{{ number_of_results }}</opensearch:totalResults>
 | 
				
			||||||
    <opensearch:startIndex>1</opensearch:startIndex>
 | 
					    <opensearch:startIndex>1</opensearch:startIndex>
 | 
				
			||||||
    <opensearch:itemsPerPage>{{ number_of_results }}</opensearch:itemsPerPage>
 | 
					    <opensearch:itemsPerPage>{{ number_of_results }}</opensearch:itemsPerPage>
 | 
				
			||||||
    <atom:link rel="search" type="application/opensearchdescription+xml" href="{{ base_url }}opensearch.xml"/>
 | 
					    <atom:link rel="search" type="application/opensearchdescription+xml" href="{{ base_url }}opensearch.xml"/>
 | 
				
			||||||
    <opensearch:Query role="request" searchTerms="{{ q }}" startPage="1" />
 | 
					    <opensearch:Query role="request" searchTerms="{{ q|e }}" startPage="1" />
 | 
				
			||||||
    {% for r in results %}
 | 
					    {% for r in results %}
 | 
				
			||||||
    <item>
 | 
					    <item>
 | 
				
			||||||
      <title>{{ r.title }}</title>
 | 
					      <title>{{ r.title }}</title>
 | 
				
			||||||
 | 
				
			|||||||
@ -3,14 +3,14 @@
 | 
				
			|||||||
     xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
 | 
					     xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
 | 
				
			||||||
     xmlns:atom="http://www.w3.org/2005/Atom">
 | 
					     xmlns:atom="http://www.w3.org/2005/Atom">
 | 
				
			||||||
  <channel>
 | 
					  <channel>
 | 
				
			||||||
    <title>Searx search: {{ q }}</title>
 | 
					    <title>Searx search: {{ q|e }}</title>
 | 
				
			||||||
    <link>{{ base_url }}?q={{ q }}</link>
 | 
					    <link>{{ base_url }}?q={{ q|e }}</link>
 | 
				
			||||||
    <description>Search results for "{{ q }}" - searx</description>
 | 
					    <description>Search results for "{{ q|e }}" - searx</description>
 | 
				
			||||||
    <opensearch:totalResults>{{ number_of_results }}</opensearch:totalResults>
 | 
					    <opensearch:totalResults>{{ number_of_results }}</opensearch:totalResults>
 | 
				
			||||||
    <opensearch:startIndex>1</opensearch:startIndex>
 | 
					    <opensearch:startIndex>1</opensearch:startIndex>
 | 
				
			||||||
    <opensearch:itemsPerPage>{{ number_of_results }}</opensearch:itemsPerPage>
 | 
					    <opensearch:itemsPerPage>{{ number_of_results }}</opensearch:itemsPerPage>
 | 
				
			||||||
    <atom:link rel="search" type="application/opensearchdescription+xml" href="{{ base_url }}opensearch.xml"/>
 | 
					    <atom:link rel="search" type="application/opensearchdescription+xml" href="{{ base_url }}opensearch.xml"/>
 | 
				
			||||||
    <opensearch:Query role="request" searchTerms="{{ q }}" startPage="1" />
 | 
					    <opensearch:Query role="request" searchTerms="{{ q|e }}" startPage="1" />
 | 
				
			||||||
    {% for r in results %}
 | 
					    {% for r in results %}
 | 
				
			||||||
    <item>
 | 
					    <item>
 | 
				
			||||||
      <title>{{ r.title }}</title>
 | 
					      <title>{{ r.title }}</title>
 | 
				
			||||||
 | 
				
			|||||||
@ -3,14 +3,14 @@
 | 
				
			|||||||
     xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
 | 
					     xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
 | 
				
			||||||
     xmlns:atom="http://www.w3.org/2005/Atom">
 | 
					     xmlns:atom="http://www.w3.org/2005/Atom">
 | 
				
			||||||
  <channel>
 | 
					  <channel>
 | 
				
			||||||
    <title>Searx search: {{ q }}</title>
 | 
					    <title>Searx search: {{ q|e }}</title>
 | 
				
			||||||
    <link>{{ base_url }}?q={{ q }}</link>
 | 
					    <link>{{ base_url }}?q={{ q|e }}</link>
 | 
				
			||||||
    <description>Search results for "{{ q }}" - searx</description>
 | 
					    <description>Search results for "{{ q|e }}" - searx</description>
 | 
				
			||||||
    <opensearch:totalResults>{{ number_of_results }}</opensearch:totalResults>
 | 
					    <opensearch:totalResults>{{ number_of_results }}</opensearch:totalResults>
 | 
				
			||||||
    <opensearch:startIndex>1</opensearch:startIndex>
 | 
					    <opensearch:startIndex>1</opensearch:startIndex>
 | 
				
			||||||
    <opensearch:itemsPerPage>{{ number_of_results }}</opensearch:itemsPerPage>
 | 
					    <opensearch:itemsPerPage>{{ number_of_results }}</opensearch:itemsPerPage>
 | 
				
			||||||
    <atom:link rel="search" type="application/opensearchdescription+xml" href="{{ base_url }}opensearch.xml"/>
 | 
					    <atom:link rel="search" type="application/opensearchdescription+xml" href="{{ base_url }}opensearch.xml"/>
 | 
				
			||||||
    <opensearch:Query role="request" searchTerms="{{ q }}" startPage="1" />
 | 
					    <opensearch:Query role="request" searchTerms="{{ q|e }}" startPage="1" />
 | 
				
			||||||
    {% for r in results %}
 | 
					    {% for r in results %}
 | 
				
			||||||
    <item>
 | 
					    <item>
 | 
				
			||||||
      <title>{{ r.title }}</title>
 | 
					      <title>{{ r.title }}</title>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user