|
@@ -7,6 +7,7 @@ from os import getenv
|
|
|
from os.path import exists
|
|
|
import string
|
|
|
import random
|
|
|
+import URLHelper
|
|
|
import antennaDB
|
|
|
import signoffs
|
|
|
|
|
@@ -41,14 +42,12 @@ else:
|
|
|
rules = list(filter(("").__ne__, rules))
|
|
|
rules.pop(0)
|
|
|
affectedRule = getenv('QUERY_STRING')
|
|
|
- affectedRule = unquote(affectedRule)
|
|
|
|
|
|
if filterFilePathParts[-1] == "add":
|
|
|
if not affectedRule:
|
|
|
print("10 Rule to add:\r\n")
|
|
|
else:
|
|
|
- if affectedRule not in rules:
|
|
|
- rules.insert(0, affectedRule)
|
|
|
+ rules.insert(0,unquote(affectedRule))
|
|
|
print("30 gemini://"+getenv('SERVER_NAME')+getenv('SCRIPT_NAME')+"/"+filterFilePathParts[0]+"\r\n")
|
|
|
|
|
|
elif filterFilePathParts[-1] == "remove":
|