OSDN Git Service
(root)
/
pybbs
/
pybbs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
487edc2
)
%は入っている気がした
author
yamat0jp
<terukohietori@gmail.com>
Sat, 6 Apr 2019 23:32:35 +0000
(08:32 +0900)
committer
yamat0jp
<terukohietori@gmail.com>
Sat, 6 Apr 2019 23:32:35 +0000
(08:32 +0900)
pybbs.py
patch
|
blob
|
history
diff --git
a/pybbs.py
b/pybbs.py
index
6b6b818
..
e6fe40e
100644
(file)
--- a/
pybbs.py
+++ b/
pybbs.py
@@
-207,7
+207,7
@@
class RegistHandler(IndexHandler):
tag = escape.xhtml_escape(word)
error += u'タグ違反.('+tag+')<br>'
i += len(line)
- obj = re.finditer('http[s]?://(?:[a-zA-Z]|[0-9
.
]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', line)
+ obj = re.finditer('http[s]?://(?:[a-zA-Z]|[0-9
]|[#$._?&~+*=
]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', line)
for x in obj:
if x.group() not in url:
url.append(x.group())