url quote
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
__version__ = "20220607.0"
|
||||
__version__ = "20220823.0"
|
||||
|
||||
|
||||
def get_version():
|
||||
|
||||
@@ -5,6 +5,7 @@ import re
|
||||
import shutil
|
||||
import subprocess
|
||||
import random
|
||||
import urllib.parse
|
||||
from argparse import ArgumentParser, HelpFormatter
|
||||
|
||||
from mirva import get_version
|
||||
@@ -283,7 +284,7 @@ Released : 20110306
|
||||
)
|
||||
|
||||
def get_post(self, image, title, content):
|
||||
|
||||
image = urllib.parse.quote(image)
|
||||
if self.video_match.match(image):
|
||||
return """
|
||||
<div class="post">
|
||||
@@ -478,4 +479,4 @@ class SmartFormatter(HelpFormatter):
|
||||
def _split_lines(self, help, width):
|
||||
if help.startswith("smart|"):
|
||||
return help[6:].splitlines()
|
||||
return HelpFormatter._split_lines(self, help, width)
|
||||
return HelpFormatter._split_lines(self, help, width)
|
||||
|
||||
Reference in New Issue
Block a user