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