Skip to content

Commit 41f70bf

Browse files
committed
fix T133532 Catgraph JSONP does not work with categories that contain a colon
1 parent 22d3aa6 commit 41f70bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

catgraph-jsonp.fcgi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ def translate_querystring(wiki, querystring):
5555
l= token.split(':')
5656
if len(l)==1 or l[0]!='Category':
5757
return str(token)
58-
return str(category_title_to_pageid(wiki, l[1]))
58+
category_title= token[ (token.find(':')+1) : ]
59+
return str(category_title_to_pageid(wiki, category_title))
5960

6061
return " ".join( [ translate_token(t) for t in querystring.split() ] )
6162

0 commit comments

Comments
 (0)